-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can't obtain body if headers don't contain content-length #464
Comments
afaik if there is no |
We need some config for that. Some servers just broken |
@DoumanAsh I can't find it in the HTTP/1.1 RFC specs, but there are some HTTP servers that use Go's HTTP response parser has some test cases for handling response bodies without a |
Client should support be able to read response even without content-length. That is just a reality |
I am also hitting this. In my case, the target server is a tiny embedded device that I have no control over. |
@terrence2 I have exactly the same problem. Use Client from hyper. It will work in that case |
0.7.6 solves the issue for me. Thank you for the fast response! |
Code:
After run:
Body is available if I send request through Firefox or curl:
@fafhrd91 on gitter found out in that case responder use content-length = 0.
The text was updated successfully, but these errors were encountered: