From 778d184277c680fc6ab8288062118969dc449118 Mon Sep 17 00:00:00 2001 From: Shachar Zohar Date: Thu, 17 May 2018 13:06:18 +0000 Subject: [PATCH] Bug 1460300 [wpt PR 10930] - expose content-length on a cors request by default, a=testonly Automatic update from web-platform-testsCORS: safelist Content-Length header See https://github.com/whatwg/fetch/pull/626 for details. -- wpt-commits: 407ecdff87af8aeceaa07cbc71aac9ec355d4334 wpt-pr: 10930 --- testing/web-platform/meta/MANIFEST.json | 2 +- testing/web-platform/tests/fetch/api/cors/cors-filtering.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 58f9f3e3fdc18..490547e959bfe 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -560280,7 +560280,7 @@ "testharness" ], "fetch/api/cors/cors-filtering.js": [ - "5beac80fa31e80addfdd29fa58557ef59865744a", + "44029d3879fb0efdd6e2bfea6b5ce78b63b8e14e", "support" ], "fetch/api/cors/cors-multiple-origins.sub.any.js": [ diff --git a/testing/web-platform/tests/fetch/api/cors/cors-filtering.js b/testing/web-platform/tests/fetch/api/cors/cors-filtering.js index 1feaa5924f6a2..e755a167b0490 100644 --- a/testing/web-platform/tests/fetch/api/cors/cors-filtering.js +++ b/testing/web-platform/tests/fetch/api/cors/cors-filtering.js @@ -52,18 +52,17 @@ corsFilter(url, "Content-Type", "text/html", false); corsFilter(url, "Expires","04 May 1988 22:22:22 GMT" , false); corsFilter(url, "Last-Modified", "04 May 1988 22:22:22 GMT", false); corsFilter(url, "Pragma", "no-cache", false); +corsFilter(url, "Content-Length", "3" , false); // top.txt contains "top" corsFilter(url, "Age", "27", true); corsFilter(url, "Server", "wptServe" , true); corsFilter(url, "Warning", "Mind the gap" , true); -corsFilter(url, "Content-Length", "3" , true); // top.txt contains "top" corsFilter(url, "Set-Cookie", "name=value" , true); corsFilter(url, "Set-Cookie2", "name=value" , true); corsExposeFilter(url, "Age", "27", false); corsExposeFilter(url, "Server", "wptServe" , false); corsExposeFilter(url, "Warning", "Mind the gap" , false); -corsExposeFilter(url, "Content-Length", "3" , false); corsExposeFilter(url, "Set-Cookie", "name=value" , true); corsExposeFilter(url, "Set-Cookie2", "name=value" , true);