From 4bc4386f3445e291cd11ecac28d17d64cfd8caa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 5 Oct 2019 15:07:24 +0200 Subject: [PATCH] fix wrong method in POST --- Cargo.toml | 2 +- src/digest.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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