WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
32262
Inappropriate automatic download of file with Content-Type: text/html
https://bugs.webkit.org/show_bug.cgi?id=32262
Summary
Inappropriate automatic download of file with Content-Type: text/html
Alan Ruttenberg
Reported
2009-12-07 21:02:46 PST
For the download links on this page, the links labeled as .gz files are actually html pages, as indicated by the Content-Type header. Nonetheless Safari downloads the html and puts it in a file of the name of the link. See ASF Bug
https://issues.apache.org/bugzilla/show_bug.cgi?id=47513
for the bug report on their side. GET /dyn/closer.cgi/poi/release/bin/poi-bin-3.5-FINAL-20090928.tar.gz HTTP/1.1 Host: www.apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Referer:
http://poi.apache.org/download.html
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us Accept-Encoding: gzip, deflate Connection: keep-alive HTTP/1.1 200 OK Date: Tue, 08 Dec 2009 04:44:49 GMT Server: Apache/2.3.4 (Unix) mod_fcgid/2.3.2-dev Cache-Control: max-age=86400 Expires: Wed, 09 Dec 2009 04:44:49 GMT Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 5874 Keep-Alive: timeout=30, max=100 Connection: Keep-Alive Content-Type: text/html
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2009-12-08 10:40:41 PST
This also happens under Mac OS X 10.6, so changing the platform. The decision to change the content type based on extension is made by a system library below WebKit. Closing as INVALID per our policy, as this is not a WebKit bug. Would you be willing to report this to Apple via <
http://bugreport.apple.com
> (free registration required)? I think that it's not right to change reported content type due to file extension without at least attempting content sniffing, but developers working on this code may have better perspective on the reasons for such behavior.
Alan Ruttenberg
Comment 2
2009-12-12 18:00:00 PST
Filed as Problem ID: 7467342
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug