A bug in the latest release leads to header values being incorrectly parsed when there is no space between header-name and header-value (header-name:headervalue\r\n includes : in the header value).
example:
let mut headers = [httparse::EMPTY_HEADER; 1];
let mut response = httparse::Response::new(&mut headers[..]);
response.parse(b"HTTP/1.0 200 OK\r\nfoo:bar\r\n\r\n").unwrap();
println!("{:?}", headers);
A bug in the latest release leads to header values being incorrectly parsed when there is no space between header-name and header-value (
header-name:headervalue\r\n
includes:
in the header value).example:
a quick bisect shows that https://github.com/seanmonstar/httparse/commit/b2625f38cc3a200e840861f2a3371eb8f5afdd73 introduced the regression.