Skip to content

OnCommittedResponseWrapper#trackContentLength(String content) behavior is invalid #851

Open
@im-scooter

Description

@im-scooter

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions