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

Unified Diff: third_party/WebKit/Source/modules/fetch/Request.cpp

Issue 2787003002: Fetch API: Stop lowercasing header names. (Closed)
Patch Set: Fix failing tests Created 3 years, 9 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/Source/modules/fetch/Request.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp
index 666857c4d2cfa63055052f5c2b60276572164c31..a30443e3e9f4a49f1da5387d72656d6918efbcf8 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -700,8 +700,7 @@ void Request::populateWebServiceWorkerRequest(
webRequest.setURL(url());
const FetchHeaderList* headerList = m_headers->headerList();
- for (size_t i = 0, size = headerList->size(); i < size; ++i) {
- const FetchHeaderList::Header& header = headerList->entry(i);
+ for (const auto& header : headerList->list()) {
webRequest.appendHeader(header.first, header.second);
}

Powered by Google App Engine
This is Rietveld 408576698