Closed
Bug 265837
Opened 20 years ago
Closed 20 years ago
Clicking on hyperlink with file shows it's contents instead of downloading
Categories
(Toolkit :: Downloads API, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: sdt78, Assigned: bugs)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 After I click on a hyperlink (http://212.5.101.38/soft/Snoop2.rar) contents of this file is shown instead of downloading it Reproducible: Always Steps to Reproduce: 1.Open http://212.5.101.38/snoop.htm 2.Click on the hyperlinks in the bottom of the screen (any of 2) Actual Results: Contents of RAR file is shown Expected Results: Start download manager IE works correctly in this situation
Comment 1•20 years ago
|
||
$ curl -I http://212.5.101.38/soft/Snoop2.rar HTTP/1.1 200 OK Date: Sun, 24 Oct 2004 11:08:32 GMT Server: Apache/2.0.52 (Win32) Last-Modified: Tue, 03 Sep 2002 07:35:50 GMT ETag: "483f-cc33-5e881c86" Accept-Ranges: bytes Content-Length: 52275 Content-Type: text/plain; charset=WINDOWS-1251 Mozilla and MIME Types Documentation: http://www.mozilla.org/docs/web-developer/mimetypes.html According to that page, "When the Content-Type sent by the server is one of (case-sensitively) text/plain, text/plain; charset=ISO-8859-1 or text/plain; charset=iso-8859-1, and the server did not send a Content-Encoding header, Mozilla will sniff the first block of data it gets and check for non-text bytes. Text bytes are 9-13, 27, and 31-255. When encountering a non-text byte, the helper app dialog will be shown, showing the mime-type corresponding to the extension of the file." Since the Content-Type here is text/plain; charset=WINDOWS-1251, Firefox is doing the intended thing and displaying the page in-browser. This is a server configuration issue. If you want it to work with Firefox, please have the server send the correct MIME type for RAR files.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•