Bug 32262
| Summary: | Inappropriate automatic download of file with Content-Type: text/html | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alan Ruttenberg <alanr-w> |
| Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac (Intel) | ||
| OS: | OS X 10.6 | ||
| URL: | http://poi.apache.org/download.html#POI-3.5-FINAL | ||
Alan Ruttenberg
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
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
Filed as Problem ID: 7467342