Index: LayoutTests/http/tests/fetch/resources/thorough-util.js |
diff --git a/LayoutTests/http/tests/fetch/resources/thorough-util.js b/LayoutTests/http/tests/fetch/resources/thorough-util.js |
index ef86a7bdac394a1b536d5f83a26096e41abc224e..92e204d228751d208cfb48498dd713566b681725 100644 |
--- a/LayoutTests/http/tests/fetch/resources/thorough-util.js |
+++ b/LayoutTests/http/tests/fetch/resources/thorough-util.js |
@@ -75,6 +75,10 @@ var hasContentLength = |
checkFetchResponseHeader.bind(this, 'content-length', true); |
var noContentLength = |
checkFetchResponseHeader.bind(this, 'content-length', false); |
+var hasContentType = |
+ checkFetchResponseHeader.bind(this, 'content-type', true); |
+var noContentType = |
+ checkFetchResponseHeader.bind(this, 'content-type', false); |
var hasServerHeader = |
checkFetchResponseHeader.bind(this, 'x-serviceworker-serverheader', true); |
var noServerHeader = |
@@ -303,7 +307,8 @@ function headersToArray(headers) { |
// checkFetchResponseHeader is used only for the header names listed below. |
// FIXME: Replace it with the original code below when Firefox supports |
// iterable. |
- ['content-length', 'x-serviceworker-serverheader'].forEach(function(name) { |
+ ['content-length', 'content-type', 'x-serviceworker-serverheader'].forEach( |
+ function(name) { |
for (var value of headers.getAll(name)) |
ret.push([name, value]); |
}); |