Comment 128 for bug 25830

Revision history for this message
In , Rebel (rebel-old) wrote :

I can't follow the other bugs (I simply do not understand them), however
what I really wonder is why we need this huge discussion in the first place.

Excuse my dumb mind, but why can't it be done some way like this:

  .configfile:
    # treat-these-mimes-as-plain-text
    ttmapt: text/x-sh, text/x-java <empty by default>

  browser mime handler:

    [... handling file with $mime ...]
    if(contains($ttmapt, $mime)) $mime = text/plain;
    [ ... go on with $mime handling ...]