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

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

Issue 2591723003: [Fetch API] Remove Headers.prototype.getAll() (Closed)
Patch Set: Update get. Created 3 years, 8 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698