You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/21 20:32:32 UTC
DO NOT REPLY [Bug 18202] -
Tomcat 5 regression: default Content-Type is set to text/plain
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