It seems that at least some recent Apache installs on some popular Linux distributions decided to make our life hard and are sending:
Content-Type: text/plain; charset=UTF-8 by default. This means, of course, that we don't sniff the content to tell whether it's binary. See <https://bugzilla.mozilla.org/show_bug.cgi?id=394647>. Perhaps we should in fact consider adding this header, though. Looking at nsUnknownDecoder::LastDitchSniff I don't think it would ever sniff actual UTF-8 text as binary. It only checks for 7-bit-clean control chars, and those would never appear in a valid UTF-8 string, right? Thoughts? -Boris _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
