Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php

Issue 1810453002: Layout test: Check that simple headers are also included in Access-Control-Request-Headers header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php
index fb44c44b99f850d26b5b5384424a2bba1836104a..b52580f312de82dc3df4d259825210a038e42177 100644
--- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php
+++ b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/resources/access-control-preflight-request-header-sorted.php
@@ -4,8 +4,8 @@ if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") {
// "sorted lexicographically, and byte lowercased".
// Fetch API Spec: https://fetch.spec.whatwg.org/#cors-preflight-fetch-0
if ($_SERVER["HTTP_ACCESS_CONTROL_REQUEST_HEADERS"] ==
- 'x-custom-s, x-custom-test, x-custom-u, x-custom-ua, x-custom-v') {
- header("Access-Control-Allow-Headers: x-custom-s, x-custom-test, x-custom-u, x-custom-ua, x-custom-v");
+ 'content-type, x-custom-s, x-custom-test, x-custom-u, x-custom-ua, x-custom-v') {
+ header("Access-Control-Allow-Headers: content-type, x-custom-s, x-custom-test, x-custom-u, x-custom-ua, x-custom-v");
} else {
header("HTTP/1.1 400");
}
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/access-control-preflight-request-header-sorted.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698