mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
net: Stop using legacy time in the HTTP and CORS caches (#33259)
This is part of switching away from using a very old version of `time`. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
817a91f2ac
commit
a58d816319
3 changed files with 53 additions and 65 deletions
|
@ -2097,7 +2097,6 @@ async fn cors_preflight_fetch(
|
|||
.typed_get::<AccessControlMaxAge>()
|
||||
.map(|acma| acma.into())
|
||||
.unwrap_or(Duration::from_secs(5));
|
||||
let max_age = max_age.as_secs() as u32;
|
||||
// Substep 10
|
||||
// TODO: Need to define what an imposed limit on max-age is
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue