tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18202] - Tomcat 5 regression: default Content-Type is set to text/plain
Date Fri, 21 Mar 2003 19:32:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18202>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18202

Tomcat 5 regression: default Content-Type is set to text/plain

dianne.jiao@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Summary|Tomcat 5 regression: default|Tomcat 5 regression: default
                   |Content-Type is set         |Content-Type is set to
                   |                            |text/plain



------- Additional Comments From dianne.jiao@sun.com  2003-03-21 19:32 -------
To be specific, the following call should return null when not set:   
ServletResponse.getContentType()
Now TC5 returns by default:      Content-Type: text/plain

public void service(ServletRequest request, ServletResponse response) throws
ServletException, IOException {
        PrintWriter pw = response.getWriter();
        String actual = response.getContentType();
        if (actual != null) {
            pw.println( "getContentType() did not return a null");
            pw.println( "actual="+actual);
        }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message