-
Notifications
You must be signed in to change notification settings - Fork 101
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
hyper v1 upgrade #357
hyper v1 upgrade #357
Conversation
81511aa
to
4c467a7
Compare
two test cases that cannot pass, I have already submitted an issue to reqwest. |
a885183
to
f46132c
Compare
76d8091
to
4473d64
Compare
xh does send
It seems to be a bug? See seanmonstar/reqwest#2202 (comment). Notably this is causing real-world issues for someone, so we shouldn't send this header for GET requests if we can avoid it. Otherwise we'd have to add it to the request headers that we print. Test caseRun this in one terminal: while nc -l -p 8080; do echo; done Then run this in another: cargo run -- -v :8080 This is what xh claims to send:
This is what's actually received:
|
Thanks for pointing that out,I've submitted a PR to fix it. |
This is very odd, but with your patched reqwest xh seems to send a body of
(or escaped: It doesn't happen if I comment out the reqwest patch in (EDIT: this happens because reqwest chooses to use chunked transfer encoding.) I've also noticed that with hyper v1 xh now errors if you override the Content-Length to be too large, e.g. |
It's really weird. I'll keep looking for a solution. |
3e5ee57
to
f9f0edc
Compare
The issue is fixed now, could you check if there are other issues? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Reqwest just released a new version 0.12.3, so this PR can be ready to go |
No description provided.