Upgrade axum to 0.5

This commit is contained in:
Jonas Platte 2022-03-31 22:50:17 +02:00
parent 1219535e56
commit db0659cb3d
No known key found for this signature in database
GPG key ID: 7D261D771D915378
3 changed files with 10 additions and 10 deletions

View file

@ -154,6 +154,7 @@ where
TypedHeaderRejectionReason::Error(_) => {
"Invalid X-Matrix signatures."
}
_ => "Unknown header-related error",
};
Error::BadRequest(ErrorKind::Forbidden, msg)
@ -247,8 +248,7 @@ where
};
let mut http_request = http::Request::builder().uri(req.uri()).method(req.method());
*http_request.headers_mut().unwrap() =
req.headers().expect("Headers already extracted").clone();
*http_request.headers_mut().unwrap() = req.headers().clone();
if let Some(CanonicalJsonValue::Object(json_body)) = &mut json_body {
let user_id = sender_user.clone().unwrap_or_else(|| {