-
Notifications
You must be signed in to change notification settings - Fork 113
hyper v1 upgrade #357
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
Conversation
|
two test cases that cannot pass, I have already submitted an issue to reqwest. |
|
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; doneThen run this in another: cargo run -- -v :8080This 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. |
|
The issue is fixed now, could you check if there are other issues? |
blyxxyz
left a comment
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.