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 053c7c2a7b222ef29ccfa5ea3a27be32ab166680..31838e20d68e427a1fa84db87471340b0e29f48e 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 |
@@ -345,15 +345,11 @@ function headersToArray(headers) { |
// iterable. |
['content-length', 'content-type', 'x-serviceworker-serverheader'].forEach( |
function(name) { |
- for (var value of headers.getAll(name)) |
- ret.push([name, value]); |
+ for (var header of headers){ |
+ ret.push(header); |
+ } |
}); |
- // Original code: |
- // for (var header of headers) { |
- // ret.push(header); |
- // } |
- |
return ret; |
} |