refactor: date formatting in cache tests (#428)

This commit is contained in:
Matthias Möller 2024-08-07 14:18:30 +02:00 committed by GitHub
parent 0311c9fb90
commit 3727dec115
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ fn get_file_with_if_modified_since_condition(
.expect("Received no valid last modified header"); .expect("Received no valid last modified header");
let req_modified_time = (last_modified + duration_after_file_modified) let req_modified_time = (last_modified + duration_after_file_modified)
.format("%a, %e %b %Y %T GMT") .format("%a, %d %b %Y %T GMT")
.to_string(); .to_string();
let resp = fetch!(b"GET", format!("{}index.html", server.url())) let resp = fetch!(b"GET", format!("{}index.html", server.url()))