DO NOT REPLY [Bug 18202] - Tomcat 5 regression: default Content-Type is set to text/plain

2003-03-26 Thread bugzilla
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





--- Additional Comments From [EMAIL PROTECTED]  2003-03-26 19:52 ---
Created an attachment (id=5520)
test case

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 18202] - Tomcat 5 regression: default Content-Type is set to text/plain

2003-03-21 Thread bugzilla
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

[EMAIL PROTECTED] 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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]