From 09f189c1f4b1d8e526b7f7673b8fddd774937274 Mon Sep 17 00:00:00 2001 From: asonix Date: Fri, 24 Jul 2020 17:25:15 -0500 Subject: [PATCH] Debug hm pieces --- Cargo.toml | 1 + src/verify.rs | 3 +++ 2 files changed, 4 insertions(+) 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)