httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42525] New: - Content-Type: header f...ed up on 500 Internal Server Error
Date Sat, 26 May 2007 17:51:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42525

           Summary: Content-Type: header f...ed up on 500 Internal Server
                    Error
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: All
               URL: http://backsla.sh/test/test.py
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Robert.Siemer@gmx.de


Imagine a CGI script that does not work as expected and makes the Apache web
server respond with a 500 Internal Server Error. At least in this case (maybe
other 500, too) the server gets the Content-Type: header wrong:

Result:
HTTP/1.1 500 Internal Server Error
...
Content-Type: text/x-python

Expected:
...
Content-Type: text/html


It seems that the web server sets the Content-Type to the mime-type of the CGI
source file.

Even "ErrorDocument ..." with or without "ForceType text/html" have no influence.

Because of this, Firefox and other browsers offer a download dialog instead of
displaying the error...

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message