Skip to content

Commit

Permalink
Fix description
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Mar 21, 2024
1 parent 22aa45d commit 2245243
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dropshot-authorization-header/src/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ impl BasicAuth {
}
}

/// Extracting a basic token should never fail, it should always return either `Ok(Some(BasicAuth))`
/// or `Ok(None)`. `None` will be returned in any of the cases that a valid string can not be extracted.
/// This extractor is not responsible for checking the value of the token.
/// Extracting a basic token should never fail, it should always return `Ok(BasicAuth)`. A BasicAuth
/// struct will only contain a username and password if both values can be constructed from the
/// header values. This extractor is not responsible for checking the value of the token.
#[async_trait]
impl SharedExtractor for BasicAuth {
async fn from_request<Context: ServerContext>(
Expand Down

0 comments on commit 2245243

Please sign in to comment.