In order this is what I need to happen:
Request on blah.com/test
blah.com/test
chain.doFilter
It works fine. Anyway it's important to note that, just in case the buffered response size is smaller than 8KB, it won't work unless you flush the response before u call getWrapperBytes().
getWrapperBytes()
This is due to servlet-api internal implementation.