Skip to content

Grizzly BodyGeneratorBodyHandler uses chunked Transfer-Encoding for bodies with known size 0 #407

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

Closed
BoxMiles opened this issue Oct 24, 2013 · 1 comment
Assignees

Comments

@BoxMiles
Copy link

This is a significant problem when communicating with older HTTP servers that do not support chunked encoding (e.g. nginx 1.0.x), and the body size is known. This seems like a one-line > vs. >= fix:

https://github.com/AsyncHttpClient/async-http-client/blob/master/providers/grizzly/src/main/java/org/asynchttpclient/providers/grizzly/bodyhandler/BodyGeneratorBodyHandler.java#L47

https://github.com/AsyncHttpClient/async-http-client/blob/ahc-1.7.x/src/main/java/com/ning/http/client/providers/grizzly/GrizzlyAsyncHttpProvider.java#L2196

@ghost ghost assigned rlubke Oct 25, 2013
rlubke added a commit that referenced this issue Oct 25, 2013
rlubke added a commit that referenced this issue Oct 25, 2013
@rlubke
Copy link
Contributor

rlubke commented Oct 25, 2013

Thanks for the report.

@rlubke rlubke closed this as completed Oct 25, 2013
cs-workco pushed a commit to cs-workco/async-http-client that referenced this issue Apr 13, 2023
* Use explicit NIO imports for `NIOCore`, `NIOPosix` and `NIOEmbedded`
* Updated dependencies
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

2 participants