Mike! un jour écriva:
Adam Piggott wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hiya,

I'm having problems with http://borft.student.utwente.nl/~adrian/bt.php
using Firefox. All of the links to .gz's cause Firefox to report an error
along the lines of "<temp path/file> could not be saved, because the source
file could not be read."

I've tried it with a different PC to the same effect; IE and Opera seem to
work OK. They used to work a few months ago I believe.

The only difference I can see is that the .gz torrents have this extra HTTP
header: Content-Encoding: x-gzip

Is this just me or should I file an issue?


Ive noticed it as well, I'll look into it, i'm not sure if it's a firefox bug or not.

Mike


It remember me a bug in Apache 1.3 that won't be fixed. You seems to use Apache 2.0.55, and It should be fixed AFAIK. But as a quick fix, commenting those lines in /etc/apache/http.conf will deactivate completelly the feature that cause this problem by commenting it:

  # AddEncoding x-compress Z
  # AddEncoding x-gzip gz tgz

The problem appear when the file have some extension like .tar.gz.sign or .tar.gz.sig and that the webserver wrongly identify them as compressed text files (from mod_mime).

Then, if the browsers support it, it will try to unzip the file on the fly before showing it up to the user uncompressed (which is not possible). In the case of IE, if it fail to uncompress it, it will try again while ignoring the "Content-Encoding: x-gzip" directive.

Firefox, Safari and most Mozilla based browsers will react the same way, because Mozilla have decided to follow the official standard while IE and apparently Opera didn't (it is specified somewhere inside a RFC).

From memory, the feature exist to allow a web server to transparently send in gzip format a file that would normally not be compressed, and thus save bandwidth and page load time.

You won't see the problem with wget, because it doesn't support the feature at all and just ignore it.

That's from memory, so the details might be a bit different, but that's the general idea.


Simon Valiquette
http://gulus.USherbrooke.ca
http://www.gulus.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to