-
Notifications
You must be signed in to change notification settings - Fork 69
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
Netty 4 Does Not Send Request Body #823
Comments
Curiously request bodies are send/flushed when calling Lines 68 to 71 in f2dde3c
|
Might be related to spring-projects/spring-framework#19426 |
If I enable the factory in the request compression test it fails in mysterious ways: Spring 4.x
Spring 5.x
|
The following was added in between 4.x and 5.x within the if (!nettyRequest.headers().contains(HttpHeaders.CONTENT_LENGTH) && this.body.buffer().readableBytes() > 0) {
nettyRequest.headers().set(HttpHeaders.CONTENT_LENGTH, this.body.buffer().readableBytes());
} Since that seems to be an issue in Spring I'd say it's not our task to fix. The issues in 5.x could be related to our compression and headers though. My idea was that we set the wrong content length and somehow the whole request is not send. But I can't prove that using the debugger. |
Which is funny, see #822 (comment) |
When using
Netty4ClientHttpRequestFactory
request bodies are not send to the server.Expected Behavior
Request body is transmitted.
Actual Behavior
Server observes empty request body.
Steps to Reproduce
See a85ce45.
Your Environment
The text was updated successfully, but these errors were encountered: