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

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

Issue 2787003002: Fetch API: Stop lowercasing header names. (Closed)
Patch Set: Rebase for landing 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
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Headers.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6900f519ce056ab131e79af79713ad2bf360bd89..de68928d23e282c826a96b5ef7569c6f724cd1d7 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -732,8 +732,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);
}
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Headers.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698