Debug hm pieces

This commit is contained in:
asonix 2020-07-24 17:25:15 -05:00
parent 7db643fc0c
commit 09f189c1f4
2 changed files with 4 additions and 0 deletions

View file

@ -22,3 +22,4 @@ members = [
[dependencies] [dependencies]
chrono = "0.4" chrono = "0.4"
thiserror = "1.0" thiserror = "1.0"
log = "0.4"

View file

@ -1,5 +1,6 @@
//! Types and methods to verify a signature or authorization header //! Types and methods to verify a signature or authorization header
use chrono::{DateTime, Duration, TimeZone, Utc}; use chrono::{DateTime, Duration, TimeZone, Utc};
use log::debug;
use std::{ use std::{
collections::{BTreeMap, HashMap, HashSet}, collections::{BTreeMap, HashMap, HashSet},
error::Error, error::Error,
@ -260,6 +261,8 @@ impl FromStr for ParsedHeader {
}) })
.collect(); .collect();
debug!("pieces {:?}", hm);
Ok(ParsedHeader { Ok(ParsedHeader {
signature: hm signature: hm
.remove(SIGNATURE_FIELD) .remove(SIGNATURE_FIELD)