We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
async-h1/src/client/decode.rs
Line 74 in dffae5f
I'm seeing date header values like
Header date -> [ "date: Wed, 01 Sep 2021 17:42:04 GMT\r\n", ]
Where date: and \r\n are both included in the value of the header.
date:
\r\n
I think
if res.header(DATE).is_none() { let date = fmt_http_date(std::time::SystemTime::now()); res.insert_header(DATE, &format!("date: {}\r\n", date)[..]); }
Should be
if res.header(DATE).is_none() { let date = fmt_http_date(std::time::SystemTime::now()); res.insert_header(DATE, &format!("{}", date)[..]); }
The text was updated successfully, but these errors were encountered:
Other headers for reference
Header date -> [ "date: Wed, 01 Sep 2021 17:42:04 GMT\r\n", ] Header content-type -> [ "application/json", ] Header content-length -> [ "211", ]
Sorry, something went wrong.
@brosander ooph, yes that's a great catch! Your suggested fix also makes a lot of sense. Would you be willing to file a PR implementing that?
No branches or pull requests
async-h1/src/client/decode.rs
Line 74 in dffae5f
I'm seeing date header values like
Where
date:
and\r\n
are both included in the value of the header.I think
Should be
The text was updated successfully, but these errors were encountered: