Skip to content
Snippets Groups Projects
Unverified Commit 1939e628 authored by Timo Kösters's avatar Timo Kösters
Browse files

fmt

parent fd69ac62
No related branches found
No related tags found
No related merge requests found
...@@ -137,9 +137,7 @@ async fn from_data(request: &'a Request<'_>, data: Data) -> data::Outcome<Self, ...@@ -137,9 +137,7 @@ async fn from_data(request: &'a Request<'_>, data: Data) -> data::Outcome<Self,
let x_matrix = match request let x_matrix = match request
.headers() .headers()
.get_one("Authorization") .get_one("Authorization")
.and_then(|s| .and_then(|s| s.get(9..)) // Split off "X-Matrix " and parse the rest
// Split off "X-Matrix " and parse the rest
s.get(9..))
.map(|s| { .map(|s| {
s.split_terminator(',') s.split_terminator(',')
.map(|field| { .map(|field| {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment