Skip to content
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

jersey-netty-connector: response body not processed when content-length/transfer-encoding headers are not present #5512

Open
sxsubram opened this issue Jan 17, 2024 · 0 comments

Comments

@sxsubram
Copy link

Invocation of a rest endpoint returns a response that does not contain content-length or transfer-encoding headers but has connection: close header set. When we read the response entity the inputstream has 0 bytes causing a downstream processing error.

From https://www.rfc-editor.org/rfc/rfc9112#name-message-body-length
this is a response message without a declared message body length, so the message body length is determined by the number of octets received prior to the server closing the connection.

jersey-netty-connector should return a body in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant