[Webkit-unassigned] [Bug 15144] New: URL "extension" used instead of content-type resulting in page download not display

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 4 13:32:06 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=15144

           Summary: URL "extension" used instead of content-type resulting
                    in page download not display
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: carnold at apache.org


The trailing characters of a URL apparently are used to override the content
type returned from the web server.  For example,

http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.15/apache-log4j-1.2.15.tar.gz

returns a web page that displays the available mirrors for
apache-log4j-1.2.15.tar.gz and the response header specifies that the response
is text/html.  However, WebKit and Safari ignore that content type and
apparently guess that the content is binary based on the "extension" of the URL
and download the web page.  If the URL is modified to add a ".html" to the end,
the page display appropriately in WebKit, however the actual download links
would be broken (the closer.cgi script builds the download links from the URL
fragment after closer.cgi).  Same thing happens when the URL ends with ".zip".

Firefox (and likely IE) will properly honor the content-type.

This bug may be related to bug 12010.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list