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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/fetch/resources/thorough-util.js

Issue 2633423003: Leave out empty-valued Access-Control-Request-Headers: on preflights. (Closed)
Patch Set: explicitly include safe headers in the (test) request 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/fetch/resources/thorough-util.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/resources/thorough-util.js b/third_party/WebKit/LayoutTests/http/tests/fetch/resources/thorough-util.js
index 9430393f850ab3cee03cae989abba54b9347e4d2..699fcf01dc0c28c9a03a15f3cef5e0cbb363a223 100644
--- a/third_party/WebKit/LayoutTests/http/tests/fetch/resources/thorough-util.js
+++ b/third_party/WebKit/LayoutTests/http/tests/fetch/resources/thorough-util.js
@@ -319,6 +319,12 @@ function getRequestInit(params) {
['X-ServiceWorker-s', 'test1'],
['X-ServiceWorker-Test', 'test3'],
['X-ServiceWorker-U', 'test5']];
+ } else if (params['headers'] === 'SAFE') {
+ init['headers'] = [['Accept', '*/*'],
+ ['Accept-Language', 'en-us,de'],
+ ['Content-Language', 'en-us'],
+ ['Content-Type', 'text/plain'],
+ ['Save-data', 'on']];
} else if (params['headers'] === '{}') {
init['headers'] = {};
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/cors-preflight2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698