forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Accept-CH] Ensure multiple headers are respected
As per https://www.rfc-editor.org/rfc/rfc2068#section-4.2 we need to be sure we treat: Accept-CH: A, B the same as: Accept-CH: A Accept-CH: B We also should be sure to treat: Accept-CH: the same as: Accept-CH: Accept-CH: A Accept-CH: B Accept-CH: Bug: 1422562 Change-Id: Idb40b732c37ebebfdcaaa34b695347ccf7e16562 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4324500 Commit-Queue: Ari Chivukula <[email protected]> Auto-Submit: Ari Chivukula <[email protected]> Reviewed-by: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1115341}
- Loading branch information
1 parent
b8b076a
commit 26c02b1
Showing
5 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
|
||
<!-- An empty webpage whose response headers include empty and full | ||
Accept-CH headers. Fetching this webpage should cause | ||
the hint cache to be dropped.--> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Accept-CH: | ||
Accept-CH: sec-ch-device-memory | ||
Accept-CH: device-memory | ||
Accept-CH: | ||
Access-Control-Allow-Origin: * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
|
||
<!-- An empty webpage whose response headers include only | ||
non-empty Accept-CH headers. Fetching this webpage should cause | ||
hints to be added to the cache.--> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Accept-CH: sec-ch-device-memory | ||
Accept-CH: device-memory | ||
Access-Control-Allow-Origin: * |