Developers List; Hanks Wang (hanwan)
Subject: RE: remove "content-length" item from the http header of
HttpServletResponse
Create a Filter, map it to the relevant requests, and in your doFilter()
method do something like this:
chain.doFilter(
request,
new HttpServletResponseWrapper(htt
rg
Subject: remove "content-length" item from the http header of
HttpServletResponse
Hi all,
All http response generated by tomcat owns a http header item
"content-length".
How can I remove the item from the header of httpServletResponse?
The reason is generate chunked
Hi all,
All http response generated by tomcat owns a http header item
"content-length".
How can I remove the item from the header of httpServletResponse?
The reason is generate chunked http response, according the RFC, there
should be no content-length item in http header when response is
ch