fix wrong method in POST

This commit is contained in:
2019-10-05 15:07:24 +02:00
parent 252022f26b
commit 4bc4386f34
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "digest_auth" name = "digest_auth"
version = "0.1.2" version = "0.1.3"
authors = ["Ondřej Hruška <ondra@ondrovo.com>"] authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
edition = "2018" edition = "2018"
description = "Implementation of the Digest Auth algorithm as defined in IETF RFC 2069, 2617, and 7616, intended for HTTP clients" description = "Implementation of the Digest Auth algorithm as defined in IETF RFC 2069, 2617, and 7616, intended for HTTP clients"
+1 -1
View File
@@ -250,7 +250,7 @@ impl<'a> AuthContext<'a> {
uri : &'u str, uri : &'u str,
body : Option<&'b [u8]> body : Option<&'b [u8]>
) -> Self { ) -> 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 /// Construct a new context with arbitrary verb and, optionally, a payload body