This commit is contained in:
asonix 2022-11-22 18:16:34 -06:00
parent 92a6f53dd6
commit 6364794c8e

View file

@ -206,8 +206,7 @@ where
E: From<SignError>,
K: Display,
{
if config.set_date {
if !req.headers().contains_key("date") {
if config.set_date && !req.headers().contains_key("date") {
req.headers_mut().insert(
"date",
HttpDate::from(SystemTime::now())
@ -216,7 +215,6 @@ where
.map_err(SignError::from)?,
);
}
}
let mut bt = std::collections::BTreeMap::new();
for (k, v) in req.headers().iter() {
bt.insert(