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

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

Issue 2787003002: Fetch API: Stop lowercasing header names. (Closed)
Patch Set: Rebase after The Big Blink Rename 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 46eea38c21112f0118111705f015f9d7e066487e..bfba03bd18bc8b616d510ce5d19ecd0190591802 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -704,8 +704,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