Skip to content

Commit

Permalink
Adds constant for the Upgrade-Insecure-Requests header.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jerryzz0 authored and cpovirk committed Aug 23, 2019
1 parent 794a10a commit 6a8b716
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion android/guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -171,7 +171,14 @@ private ReferrerPolicyValues() {}
public static final String TE = "TE";
/** The HTTP {@code Upgrade} header field name. */
public static final String UPGRADE = "Upgrade";
/** The HTTP {@code User-Agent} header field name. */
/**
* The HTTP <a href="https://w3c.github.io/webappsec-upgrade-insecure-requests/#preference">{@code
* Upgrade-Insecure-Requests}</a> header field name.
*
* @since NEXT
*/
public static final String UPGRADE_INSECURE_REQUESTS = "Upgrade-Insecure-Requests";

public static final String USER_AGENT = "User-Agent";

// HTTP Response header fields
Expand Down
9 changes: 8 additions & 1 deletion guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -171,7 +171,14 @@ private ReferrerPolicyValues() {}
public static final String TE = "TE";
/** The HTTP {@code Upgrade} header field name. */
public static final String UPGRADE = "Upgrade";
/** The HTTP {@code User-Agent} header field name. */
/**
* The HTTP <a href="https://w3c.github.io/webappsec-upgrade-insecure-requests/#preference">{@code
* Upgrade-Insecure-Requests}</a> header field name.
*
* @since NEXT
*/
public static final String UPGRADE_INSECURE_REQUESTS = "Upgrade-Insecure-Requests";

public static final String USER_AGENT = "User-Agent";

// HTTP Response header fields
Expand Down

0 comments on commit 6a8b716

Please sign in to comment.