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

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

Issue 2787003002: Fetch API: Stop lowercasing header names. (Closed)
Patch Set: Rebase again 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/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 6751f3276f1391932e43d03e9e2e8ac8b87e3027..05cf87dcfea038cf0b68728932973e8129cbfd66 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -701,8 +701,7 @@ void Request::PopulateWebServiceWorkerRequest(
web_request.SetURL(url);
const FetchHeaderList* header_list = headers_->HeaderList();
- for (size_t i = 0, size = header_list->size(); i < size; ++i) {
- const FetchHeaderList::Header& header = header_list->Entry(i);
+ for (const auto& header : header_list->List()) {
web_request.AppendHeader(header.first, header.second);
}

Powered by Google App Engine
This is Rietveld 408576698