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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 1783653002: save-data header value gets appended on page refreshes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed japhet comments Created 4 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/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 1df10fbfffb9ab292be649bb88d6e077cc78b070..ec4670beddfe601a65132a4b9423f76b6d91f208 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -120,7 +120,7 @@ void FrameFetchContext::addAdditionalRequestHeaders(ResourceRequest& request, Fe
return;
if (frame()->settings() && frame()->settings()->dataSaverEnabled())
- request.addHTTPHeaderField("Save-Data", "on");
+ request.setHTTPHeaderField("Save-Data", "on");
frame()->loader().applyUserAgent(request);
}

Powered by Google App Engine
This is Rietveld 408576698