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

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

Issue 2603713003: [Fetch API] Pass web-platform fetch/api/cors/cors-preflight.html. (Closed)
Patch Set: fix CrossOriginAccessControlTest Created 3 years, 11 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
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 7b93ce761c0101395bf7c5ab63c51c7155bb2c73..46d12ae39d272048fb9d20528732da6c35662e2e 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
@@ -6,7 +6,7 @@ if ($_SERVER["REQUEST_METHOD"] == "OPTIONS") {
//
// 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') {
+ '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");
} else {
header("HTTP/1.1 400");

Powered by Google App Engine
This is Rietveld 408576698