diff --git a/http-signature-normalization-reqwest/Cargo.toml b/http-signature-normalization-reqwest/Cargo.toml index 7cc890c..d8eb073 100644 --- a/http-signature-normalization-reqwest/Cargo.toml +++ b/http-signature-normalization-reqwest/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "http-signature-normalization-reqwest" description = "An HTTP Signatures library that leaves the signing to you" -version = "0.6.0" +version = "0.7.0" authors = ["asonix "] license-file = "LICENSE" readme = "README.md" @@ -23,11 +23,9 @@ required-features = ["sha-2"] [dependencies] base64 = { version = "0.13", optional = true } -bytes = "1" -http = "0.2.0" http-signature-normalization = { version = "0.6.0", path = ".." } reqwest = { version = "0.11", default-features = false, features = ["json"] } -reqwest-middleware = { version = "0.1.2", optional = true } +reqwest-middleware = { version = "0.2.0", optional = true } sha2 = { version = "0.10", optional = true } sha3 = { version = "0.10", optional = true } thiserror = "1.0" diff --git a/http-signature-normalization-reqwest/examples/client.rs b/http-signature-normalization-reqwest/examples/client.rs index 2670a0b..41d5db2 100644 --- a/http-signature-normalization-reqwest/examples/client.rs +++ b/http-signature-normalization-reqwest/examples/client.rs @@ -1,9 +1,11 @@ -use std::time::SystemTime; - use http_signature_normalization_reqwest::prelude::*; use httpdate::HttpDate; -use reqwest::{header::DATE, Client}; +use reqwest::{ + header::{ACCEPT, DATE, USER_AGENT}, + Client, +}; use sha2::{Digest, Sha256}; +use std::time::SystemTime; async fn request(config: Config) -> Result<(), Box> { let digest = Sha256::new(); @@ -12,8 +14,8 @@ async fn request(config: Config) -> Result<(), Box