diff options
author | khai96_ <hvksmr1996@gmail.com> | 2019-05-24 06:57:05 +0000 |
---|---|---|
committer | khai96_ <hvksmr1996@gmail.com> | 2019-05-24 06:57:05 +0000 |
commit | 197a52889f00d2b90fe67cf10d274db6761cbbb3 (patch) | |
tree | 6351517506cb99302d15df56c15d083b2fb03f2d /src | |
parent | Complete integration test (diff) | |
download | miniserve-197a52889f00d2b90fe67cf10d274db6761cbbb3.tar.gz miniserve-197a52889f00d2b90fe67cf10d274db6761cbbb3.zip |
Improve doc comment
Diffstat (limited to '')
-rw-r--r-- | src/auth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs index 7cd11fe..762746b 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -53,7 +53,7 @@ pub fn parse_basic_auth( }) } -/// Verify authentication +/// Return `true` if `basic_auth` is matches any of `required_auth` pub fn match_auth(basic_auth: BasicAuthParams, required_auth: &[RequiredAuth]) -> bool { required_auth.iter().any( |RequiredAuth { username, password }| |