Open
Description
OnCommittedResponseWrapper#trackContentLength(String content) behavior is invalid.
Now method uses content.length() to get string size. Further this value used to determinate output buffer capacity. Unfortunately this approach doesn't work for localized strings, thus localized string takes 1-2 bytes for UTF-8 encoding, For Jetty HttpServletResponse#bufferSize() returns size of in bytes internal buffer . So when OnCommittedResponseWrapper#doOnResponseCommitted() is called first time response is committed and no way to set session cookie.