mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-22 01:11:00 +00:00
Clippy
This commit is contained in:
parent
92a6f53dd6
commit
6364794c8e
1 changed files with 8 additions and 10 deletions
|
@ -206,16 +206,14 @@ where
|
||||||
E: From<SignError>,
|
E: From<SignError>,
|
||||||
K: Display,
|
K: Display,
|
||||||
{
|
{
|
||||||
if config.set_date {
|
if config.set_date && !req.headers().contains_key("date") {
|
||||||
if !req.headers().contains_key("date") {
|
req.headers_mut().insert(
|
||||||
req.headers_mut().insert(
|
"date",
|
||||||
"date",
|
HttpDate::from(SystemTime::now())
|
||||||
HttpDate::from(SystemTime::now())
|
.to_string()
|
||||||
.to_string()
|
.try_into()
|
||||||
.try_into()
|
.map_err(SignError::from)?,
|
||||||
.map_err(SignError::from)?,
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
let mut bt = std::collections::BTreeMap::new();
|
let mut bt = std::collections::BTreeMap::new();
|
||||||
for (k, v) in req.headers().iter() {
|
for (k, v) in req.headers().iter() {
|
||||||
|
|
Loading…
Reference in a new issue