On May 3, 2005, at 10:21 PM, Torben wrote:
Roine Gustafsson <[EMAIL PROTECTED]> wrote:
However, since this is a common plague, I wish there was a safety catch
in Camino that wouldn't try to display something that is absurdly big
and/or contains nonprintable characters as text, since it almost causes
Camino to hang. Anyone feel like adding such a feature? Pretty please
with sugar on top?
This safety catch already exists (see <URL:https://bugzilla.mozilla.org/show_bug.cgi?id=220807>), making it wider would probably break more sites than it fixes.
I had never seen this in Camino, so I just did a quick check with my 0425 nightly. Serving a "test.bin" as text/plain with the content "hello world" displays it nicely. Filling test.bin with e.g. zip data (still serving it text/plain) makes Camino download the file instead!
So obviously there is some sniffing going on.
However: Changing the filename to test.gz will apparently cause Apache to return "Content-Encoding: x-gzip" header. This will apparently fool Camino, because now I get a screenful of junk. This sniffing apparently doesn't work on gzipped transport files.
IMO, this is an Apache bug: Just because the file extension is .gz doesn't mean Apache should send "Content-Encoding: x-gzip"! The content doesn't even have to be in gzip format.
So it looks like there is some protection for misconfigured servers, but the protection breaks if the extension happens to be .gz.
/Roine
_______________________________________________ Camino mailing list [email protected] http://mozdev.org/mailman/listinfo/camino
