mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-22 21:22:24 +00:00
fmt
This commit is contained in:
1 file changed
+1
-3
+1
-3
@@ -137,9 +137,7 @@ async fn from_data(request: &'a Request<'_>, data: Data) -> data::Outcome<Self,
|
||||
let x_matrix = match request
|
||||
.headers()
|
||||
.get_one("Authorization")
|
||||
.and_then(|s|
|
||||
// Split off "X-Matrix " and parse the rest
|
||||
s.get(9..))
|
||||
.and_then(|s| s.get(9..)) // Split off "X-Matrix " and parse the rest
|
||||
.map(|s| {
|
||||
s.split_terminator(',')
|
||||
.map(|field| {
|
||||
|
||||
Reference in new issue
Block a user