You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
[Header { name: "foo", value: ":bar" }]
a quick bisect shows that b2625f3 introduced the regression.
The text was updated successfully, but these errors were encountered:
mathpal
changed the title
httparse 1.9.2 breaks header parsing for certain cases
httparse 1.9.x breaks header parsing for certain cases
Jun 11, 2024
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 b2625f3 introduced the regression.
The text was updated successfully, but these errors were encountered: