-
-
Notifications
You must be signed in to change notification settings - Fork 119
Failure to parse 200 status code not followed by SP #29
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
Comments
Note that curl's HTTP parsing accepts this response. While such a response voilates the HTTP spec, curl seems to tolerate it, and I would suggest that httparse should as well. |
Considering the reason phrase is deprecated in HTTP2, this seems like a
reasonable change.
…On Sat, Dec 3, 2016, 1:25 PM Josh Triplett ***@***.***> wrote:
Note that curl's HTTP parsing accepts this response. While such a response
voilates the HTTP spec, curl seems to tolerate it, and I would suggest that
httparse should as well.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADJF-obf31KgJZEW_B7mnJlVHNnvdVjks5rEd5BgaJpZM4LDZri>
.
|
This has been included in the newly published v1.2.1. |
Great turnaround for this Sean! Thanks! Will this functionality be ported downstream into hyper and subsequently reqwest? |
Both of those depend on essentially |
Awesome, will do. Thank you again for your help!
…On Sun, Dec 4, 2016, 2:09 PM Sean McArthur ***@***.***> wrote:
Both of those depend on essentially 1.x of httparse, so running a cargo
update in your project should bring it up to date.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHYkbByS5ajjfqJ9a0sYnOXSds4AaYZ3ks5rEw_ogaJpZM4LDZri>
.
|
I was trying to use hyper and reqwest on a project yesterday to communicate to a server internal to my workplace. When trying to create a client using either crate, it returns an HTTP(Status) error, stating "Invalid Status provided".
Here's the strace of the executable, changed only to remove private server details from the request and response headers:
After discussing this in the rust IRC, we've suspect that httparse might be failing on the fact that the custom webserver is returning "HTTP/1.1 200\r\n", with no SP or Reason Phrase following the status code before the CRLF.
CCing @joshtriplett on this, as well, since he helped me find the issue
The text was updated successfully, but these errors were encountered: