diff options
Diffstat (limited to '')
-rw-r--r-- | src/auth.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/auth.rs b/src/auth.rs index 762746b..2c98622 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -122,17 +122,6 @@ impl Middleware<crate::MiniserveConfig> for Auth { if match_auth(auth_req, required_auth) { return Ok(Response::Done(resp)); } - - return Ok(Response::Done( - HttpResponse::Unauthorized().body( - build_unauthorized_response( - &req, - ContextualError::InvalidHTTPCredentials, - true, - StatusCode::UNAUTHORIZED, - ) - ) - )); } Ok(Response::Done( |