You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-01 20:26:56 +03:00
Remove implied StatusCode::OK
This commit is contained in:
committed by
Quentin Gliech
parent
44c1503bf2
commit
0e1b2ea6b1
@ -192,7 +192,7 @@ pub(crate) async fn post(
|
|||||||
headers.typed_insert(CacheControl::new().with_no_store());
|
headers.typed_insert(CacheControl::new().with_no_store());
|
||||||
headers.typed_insert(Pragma::no_cache());
|
headers.typed_insert(Pragma::no_cache());
|
||||||
|
|
||||||
Ok((StatusCode::OK, headers, Json(reply)))
|
Ok((headers, Json(reply)))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn hash<H: Digest>(mut hasher: H, token: &str) -> anyhow::Result<String> {
|
fn hash<H: Digest>(mut hasher: H, token: &str) -> anyhow::Result<String> {
|
||||||
|
@ -70,7 +70,6 @@ mod builtin {
|
|||||||
|
|
||||||
let res = if is_head {
|
let res = if is_head {
|
||||||
(
|
(
|
||||||
StatusCode::OK,
|
|
||||||
TypedHeader(ContentType::from(mime)),
|
TypedHeader(ContentType::from(mime)),
|
||||||
TypedHeader(ContentLength(len)),
|
TypedHeader(ContentLength(len)),
|
||||||
TypedHeader(etag),
|
TypedHeader(etag),
|
||||||
@ -78,7 +77,6 @@ mod builtin {
|
|||||||
.into_response()
|
.into_response()
|
||||||
} else {
|
} else {
|
||||||
(
|
(
|
||||||
StatusCode::OK,
|
|
||||||
TypedHeader(ContentType::from(mime)),
|
TypedHeader(ContentType::from(mime)),
|
||||||
TypedHeader(ContentLength(len)),
|
TypedHeader(ContentLength(len)),
|
||||||
TypedHeader(etag),
|
TypedHeader(etag),
|
||||||
|
Reference in New Issue
Block a user