aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2019-04-26 14:27:03 +0000
committerGitHub <noreply@github.com>2019-04-26 14:27:03 +0000
commiteddeefc3ae3a655cf57e3e259464cee464b6f96e (patch)
treeebb46cbcdde44f87e0d02791bb8e3b20baf8ec37 /src/main.rs
parentUse rstest test fixtures to cut down on code duplication in integration tests (diff)
parentUse 'if let' (diff)
downloadminiserve-eddeefc3ae3a655cf57e3e259464cee464b6f96e.tar.gz
miniserve-eddeefc3ae3a655cf57e3e259464cee464b6f96e.zip
Merge pull request #76 from KSXGitHub/pullrequest.hashed-password
Add support for hashed password (sha256 and sha512)
Diffstat (limited to '')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index cf7ca93..bc8f3f0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -37,7 +37,7 @@ pub struct MiniserveConfig {
pub interfaces: Vec<IpAddr>,
/// Enable HTTP basic authentication
- pub auth: Option<auth::BasicAuthParams>,
+ pub auth: Option<auth::RequiredAuth>,
/// If false, miniserve will serve the current working directory
pub path_explicitly_chosen: bool,