diff --git a/Cargo.toml b/Cargo.toml index 71fa75a..fa8e061 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "digest_auth" -version = "0.1.2" +version = "0.1.3" authors = ["Ondřej Hruška "] edition = "2018" description = "Implementation of the Digest Auth algorithm as defined in IETF RFC 2069, 2617, and 7616, intended for HTTP clients" diff --git a/src/digest.rs b/src/digest.rs index a2b7f83..eaa297c 100644 --- a/src/digest.rs +++ b/src/digest.rs @@ -250,7 +250,7 @@ impl<'a> AuthContext<'a> { uri : &'u str, body : Option<&'b [u8]> ) -> Self { - Self::new_with_method(username, password, uri, body, HttpMethod::GET) + Self::new_with_method(username, password, uri, body, HttpMethod::POST) } /// Construct a new context with arbitrary verb and, optionally, a payload body