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=5740>.
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=5740

content-type reset to text/html on response with status >= 400





------- Additional Comments From [EMAIL PROTECTED]  2002-01-16 11:28 -------
I downloaded the source and took a closer look.  From what I read the 
ErrorReportValve only resets the response if an exception is being reported.  
When the ErrorReportValve tries to write to the response it uses getReporter 
which in my case will return null (I have written content, even though it is 
not committed) and the response is not in an error state (not generating error 
report from an exception).  Thus the HTML page cannot be written to the 
response, however by this point ErrorReportValve has modified the content-type 
to text/html.

I guess I would expect that the ErrorReportValve wouldn't bother trying to 
generate a report if the response already has content.

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

Reply via email to