Geir Øvsttun wrote: > I am still struggling with the removal of header problem. > > I found that the ServletResponse has a reset() method which should delete > all headers. I thought maybe I could use this and then reconstruct the > response object with only the headers I want. I tried to do call this > method in the http servlet code itself but when the object is returned > Tomcat reconstruct the original headers before sending the response to the > client. > > For this to work must the reset() method be called from a Filter or a Valve > ?
AFAICT the HttpServletResponse object a Filter sees doesn't contain the Date and Server header fields. These seem to be added later in the response chain. I therefore doubt a filter will help you. Maybe a valve will get the task done, but since I've never worked with a homegrown Valve, I don't know. Regards mks --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]