seanmonstar / httparse

A push parser for the HTTP 1.x protocol in Rust.
https://docs.rs/httparse
Apache License 2.0
585 stars 114 forks source link

Error::NewLine on responses with multi-word reasons #1

Closed xstr closed 9 years ago

xstr commented 9 years ago

Typical offenders:

HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade

or

HTTP/1.1 404 Not Found
seanmonstar commented 9 years ago

I have no idea how I missed this...

On Fri, Mar 20, 2015, 8:41 PM xstr notifications@github.com wrote:

Typical offenders:

HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade

or

HTTP/1.1 404 Not Found

— Reply to this email directly or view it on GitHub https://github.com/seanmonstar/httparse/issues/1.