Skip to content

Commit 6a8b716

Browse files
jerryzz0cpovirk
authored andcommitted
Adds constant for the Upgrade-Insecure-Requests header.
https://w3c.github.io/webappsec-upgrade-insecure-requests/#preference RELNOTES=Adds constant for the Upgrade-Insecure-Requests header. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=264984423
1 parent 794a10a commit 6a8b716

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

android/guava/src/com/google/common/net/HttpHeaders.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,14 @@ private ReferrerPolicyValues() {}
171171
public static final String TE = "TE";
172172
/** The HTTP {@code Upgrade} header field name. */
173173
public static final String UPGRADE = "Upgrade";
174-
/** The HTTP {@code User-Agent} header field name. */
174+
/**
175+
* The HTTP <a href="https://w3c.github.io/webappsec-upgrade-insecure-requests/#preference">{@code
176+
* Upgrade-Insecure-Requests}</a> header field name.
177+
*
178+
* @since NEXT
179+
*/
180+
public static final String UPGRADE_INSECURE_REQUESTS = "Upgrade-Insecure-Requests";
181+
175182
public static final String USER_AGENT = "User-Agent";
176183

177184
// HTTP Response header fields

guava/src/com/google/common/net/HttpHeaders.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,14 @@ private ReferrerPolicyValues() {}
171171
public static final String TE = "TE";
172172
/** The HTTP {@code Upgrade} header field name. */
173173
public static final String UPGRADE = "Upgrade";
174-
/** The HTTP {@code User-Agent} header field name. */
174+
/**
175+
* The HTTP <a href="https://w3c.github.io/webappsec-upgrade-insecure-requests/#preference">{@code
176+
* Upgrade-Insecure-Requests}</a> header field name.
177+
*
178+
* @since NEXT
179+
*/
180+
public static final String UPGRADE_INSECURE_REQUESTS = "Upgrade-Insecure-Requests";
181+
175182
public static final String USER_AGENT = "User-Agent";
176183

177184
// HTTP Response header fields

0 commit comments

Comments
 (0)