diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-02-19 05:08:02 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-02-19 05:08:02 +0000 |
commit | dc92b4e4107885b8a891ce3406e0fca236ccb2d5 (patch) | |
tree | 9be317f18894d11c2954bc344c591be8e89454aa /src/auth.rs | |
parent | Merge pull request #444 from svenstaro/dependabot/cargo/chrono-humanize-0.1.2 (diff) | |
download | miniserve-dc92b4e4107885b8a891ce3406e0fca236ccb2d5.tar.gz miniserve-dc92b4e4107885b8a891ce3406e0fca236ccb2d5.zip |
Fix lints
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()); |