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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/FetchUtils.cpp

Issue 2695923010: Add Network.setSendRequestIdHeader and use it in headless (Closed)
Patch Set: Fix the layout test Created 3 years, 10 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/platform/loader/fetch/FetchUtils.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchUtils.cpp b/third_party/WebKit/Source/platform/loader/fetch/FetchUtils.cpp
index 2e07a1622542db384b1e1ccf944129a2d6c5b281..b1da510f52f456231fe18b7c1312e0a082ce2559 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/FetchUtils.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/FetchUtils.cpp
@@ -92,14 +92,15 @@ bool FetchUtils::isSimpleHeader(const AtomicString& name,
// `text/plain`."
// Treat 'Save-Data' as a simple header, since it is added by Chrome when
// Data Saver feature is enabled.
- // Treat inspector header as a simple header, since it is added by blink when
- // inspector is open.
+ // Treat inspector headers as a simple headers, since they are added by blink
+ // when the inspector is open.
if (equalIgnoringCase(name, "accept") ||
equalIgnoringCase(name, "accept-language") ||
equalIgnoringCase(name, "content-language") ||
equalIgnoringCase(
name, HTTPNames::X_DevTools_Emulate_Network_Conditions_Client_Id) ||
+ equalIgnoringCase(name, HTTPNames::X_DevTools_Request_Id) ||
equalIgnoringCase(name, "save-data"))
return true;

Powered by Google App Engine
This is Rietveld 408576698