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

           Summary: MessageBytes used to call recycle() before setString(),
                    now impossible to clear a http header as in
                    setHeader(null)
           Product: Tomcat 5
           Version: 5.5.20
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


MessageBytes used to call recycle() before setString(), now impossible to clear
a http header as in setHeader(null)

I used to call response.setHeader("Cache-Control", null) and
getResponse().setHeader("Pragma", null) and it doesn't clear the headers 
anymore.

This is because the org.apache.tomcat.util.buf.MessageBytes.setString()
doesn't do anything if the given string is null. It is a major regression if not
a servlet spec violation to not allow to clear a http header.

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

Reply via email to