I played with the code a bit more and I realized that when the
doFilter method returns true, the headers get sent to the client
properly. Not sure if this is a feature or a bug, but I think it's ok
for my filter to return true from this method.
The new problem I now have is that response.reset() seems to reset
only response headers, the response OutputBuffer seems to be intact.
So if something has been written into the response (but not committed
yet), there appears to be no easy way to get rid of it.
Am I missing something?
thanks,
Igor