diff options
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth.rs b/src/auth.rs index a2dfe60..9e296ec 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -86,7 +86,7 @@ pub async fn handle_auth(req: ServiceRequest, cred: BasicAuth) -> Result<Service ) .body(build_unauthorized_response( &req, - ContextualError::InvalidHTTPCredentials, + ContextualError::InvalidHttpCredentials, true, StatusCode::UNAUTHORIZED, )) @@ -104,7 +104,7 @@ fn build_unauthorized_response( error_code: StatusCode, ) -> String { let state = req.app_data::<crate::MiniserveConfig>().unwrap(); - let error = ContextualError::HTTPAuthenticationError(Box::new(error)); + let error = ContextualError::HttpAuthenticationError(Box::new(error)); if log_error_chain { errors::log_error_chain(error.to_string()); |