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
This is blocking the Servo rustup. Code went from
let reason = match str::from_utf8(cursor.into_inner()) { Ok(s) => s.trim(), Err(_) => return Err(HttpStatusError) }; let reason = match from_u16::<StatusCode>(code) { Some(status) => match status.canonical_reason() { Some(phrase) => { if phrase == reason { Borrowed(phrase) } else { Owned(reason.to_string()) } } _ => Owned(reason.to_string()) }, None => return Err(HttpStatusError) };
to
let code = res.code.unwrap(); let reason = match StatusCode::from_u16(code).canonical_reason() { Some(reason) => Cow::Borrowed(reason), None => Cow::Owned(res.reason.unwrap().to_owned()) };
The text was updated successfully, but these errors were encountered:
For what is the reason phrase needed in servo?
Sorry, something went wrong.
https://xhr.spec.whatwg.org/#the-statustext-attribute
fix(http): keep raw reason phrase in RawStatus
8cdb9d5
Closes #497
Successfully merging a pull request may close this issue.
This is blocking the Servo rustup. Code went from
to
The text was updated successfully, but these errors were encountered: