diff --git a/Cargo.toml b/Cargo.toml index dcff986..6709286 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,4 @@ members = [ [dependencies] chrono = "0.4" thiserror = "1.0" +log = "0.4" diff --git a/src/verify.rs b/src/verify.rs index 1eed69d..00c882c 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -1,5 +1,6 @@ //! Types and methods to verify a signature or authorization header use chrono::{DateTime, Duration, TimeZone, Utc}; +use log::debug; use std::{ collections::{BTreeMap, HashMap, HashSet}, error::Error, @@ -260,6 +261,8 @@ impl FromStr for ParsedHeader { }) .collect(); + debug!("pieces {:?}", hm); + Ok(ParsedHeader { signature: hm .remove(SIGNATURE_FIELD)