https://bz.apache.org/bugzilla/show_bug.cgi?id=59310
--- Comment #6 from Konstantin Kolinko <knst.koli...@gmail.com> --- You should be able to do the following in your servlet: protected void doHead(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentLength(-1); } (BTW, skipping a setContentLength() call in javax.servlet.http.HttpServlet will have the same effect. The contentLength is a numeric field that always has some value, with -1 being the default. The actual header is generated in o.a.coyote.http11.Http11Processor.prepareResponse()). -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org