Compare commits
1 commit
d46d449eb5
...
c0846c56fe
Author | SHA1 | Date | |
---|---|---|---|
c0846c56fe |
1 changed files with 2 additions and 2 deletions
|
@ -828,7 +828,7 @@ impl PreconditionHeaders {
|
|||
}
|
||||
} else if let Some(ius) = &self.if_unmodified_since {
|
||||
// Step 2: if-unmodified-since is present, and if-match is absent
|
||||
if v_date > ius {
|
||||
if v_date > *ius {
|
||||
return Ok(Some(StatusCode::PRECONDITION_FAILED));
|
||||
}
|
||||
}
|
||||
|
@ -840,7 +840,7 @@ impl PreconditionHeaders {
|
|||
}
|
||||
} else if let Some(ims) = &self.if_modified_since {
|
||||
// Step 4: if-modified-since is present, and if-none-match is absent
|
||||
if v_date <= ims {
|
||||
if v_date <= *ims {
|
||||
return Ok(Some(StatusCode::NOT_MODIFIED));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue