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]
chrono = "0.4"
thiserror = "1.0"
log = "0.4"

View file

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