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

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

Issue 1287453005: Merge 198924 "UPGRADE: Rename the 'https' header." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2403_901/
Patch Set: Created 5 years, 4 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: Source/core/loader/FrameFetchContext.cpp
===================================================================
--- Source/core/loader/FrameFetchContext.cpp (revision 200257)
+++ Source/core/loader/FrameFetchContext.cpp (working copy)
@@ -583,7 +583,7 @@
// Tack an 'HTTPS' header to outgoing navigational requests, as described in
// https://w3c.github.io/webappsec/specs/upgrade/#feature-detect
if (fetchRequest.resourceRequest().frameType() != WebURLRequest::FrameTypeNone)
- fetchRequest.mutableResourceRequest().addHTTPHeaderField("HTTPS", "1");
+ fetchRequest.mutableResourceRequest().addHTTPHeaderField("Upgrade-Insecure-Requests", "1");
if (m_document && m_document->insecureRequestsPolicy() == SecurityContext::InsecureRequestsUpgrade && url.protocolIs("http")) {
ASSERT(m_document->insecureNavigationsToUpgrade());

Powered by Google App Engine
This is Rietveld 408576698