Closed Bug 1087977 Opened 10 years ago Closed 10 years ago

Trying to download a 7z file on h5ai HTTP web server index opens it instead

Categories

(Firefox :: File Handling, defect)

36 Branch
x86_64
Windows 7
defect
Not set
major

Tracking

()

VERIFIED INVALID

People

(Reporter: Virtual, Unassigned)

References

()

Details

(Keywords: nightly-community, regression)

1. Open http://tmod.nmm-hd.org/LAVFilters/ 2. Download one of LAVFilters-0.63-1-git files 3. It get opened in Firefox...
This is probably Bug 381936
/LAVFilters-0.63-1-git-r3339%28c301d58%29-Installer.7z Status: HTTP/1.1 200 OK Server: nginx Date: Thu, 23 Oct 2014 13:57:12 GMT Content-Type: text/plain Last-Modified: Mon, 20 Oct 2014 13:48:32 GMT Transfer-Encoding: chunked Connection: close Vary: Accept-Encoding ETag: W/"544512b0-81703d" Content-Encoding: gzip text/plain means that Firefox renders it
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
(In reply to Matthias Versen [:Matti] from comment #2) > /LAVFilters-0.63-1-git-r3339%28c301d58%29-Installer.7z > > Status: HTTP/1.1 200 OK > Server: nginx > Date: Thu, 23 Oct 2014 13:57:12 GMT > Content-Type: text/plain > Last-Modified: Mon, 20 Oct 2014 13:48:32 GMT > Transfer-Encoding: chunked > Connection: close > Vary: Accept-Encoding > ETag: W/"544512b0-81703d" > Content-Encoding: gzip > > text/plain means that Firefox renders it Should you be invalidating this so fast? Both IE and Chrome handle it as expected and show the download dialog. Firefox is the only browser that tries to render it.
(In reply to IU from comment #3) > Should you be invalidating this so fast? Both IE and Chrome handle it as > expected and show the download dialog. Firefox is the only browser that > tries to render it. i marked this report incvalid because the technical details are clear. Based on the http headers i expect that a browser renders this as text if it folows the RFC. I made this example 7+ years ago for bugzilla: http://mversen.de/mozilla/text/mozilla.rar This is my file on my server and this should render in the browser as text. A browser that presents a download dialog is wrong. This bug report is invalid unless Mozilla decides to violate the rfc and do content sniffing like IE and Chrome
Thank you for detailed info.
Status: RESOLVED → VERIFIED
the workaround (that i think you already know) is to right click and select "save link as". The real fix would be to change the server config to send this with a proper mime type
You need to log in before you can comment on or make changes to this bug.