mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Implement cookie expiry date parsing algorithm (#37715)
The cookie-rs library parses the cookie expiry date based on the format from RFC 2616 (for HTTP/1.1), which is stricter than the format from RFC 6265 (for HTTP cookie). This patch implements the cookie expiry date algorithm from RFC 6265. When Cookie::parse fails in parsing the expiry date, we try to parse the expiry again with this algorithm, to provide extra compatibility with legacy systems. Testing: Pass a WPT test that was expected to fail before, and add a unit test. Fixes: #36452 --------- Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
parent
099d20fe94
commit
464d71ecfc
7 changed files with 310 additions and 6 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -5408,6 +5408,7 @@ dependencies = [
|
|||
"mime",
|
||||
"mime_guess",
|
||||
"net_traits",
|
||||
"nom",
|
||||
"pixels",
|
||||
"profile_traits",
|
||||
"rayon",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue