fix wrong method in POST

pull/4/head
Ondřej Hruška 5 years ago
parent 252022f26b
commit 4bc4386f34
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      Cargo.toml
  2. 2
      src/digest.rs

@ -1,6 +1,6 @@
[package]
name = "digest_auth"
version = "0.1.2"
version = "0.1.3"
authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
edition = "2018"
description = "Implementation of the Digest Auth algorithm as defined in IETF RFC 2069, 2617, and 7616, intended for HTTP clients"

@ -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

Loading…
Cancel
Save