-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EE10 Servlet include after HttpServletResponse.getWriter().println()
omits Content-Length
from the response
#10155
Comments
@lorban content length is not expected when include is used, instead chunking or EOF will be used. |
We at least need to assert that the EE10 behavior is sane as using the |
Fix #10155 Include mixed writers and input streams
If the included servlet uses the writer, we must flush it and thus commit the response. Previously we were sometimes able to avoid the commit, but that is too complex now and not required by the spec.
Avoid flushing writer if at all possible to avoid early commit
* Fix #10155 Include mixed writers and input streams --------- Signed-off-by: Ludovic Orban <[email protected]> Co-authored-by: Ludovic Orban <[email protected]>
Jetty version(s)
12
Description
Any EE10 servlet that does the following:
will not add the
Content-Length
header to the response.The text was updated successfully, but these errors were encountered: