Skip to content

Commit

Permalink
Add X-Download-Options header (IE8 header to control the "Open" butto…
Browse files Browse the repository at this point in the history
…n on the download dialog).

RELNOTES=Defined an [X-Download-Options](https://blogs.msdn.microsoft.com/ieinternals/2009/06/30/internet-explorer-and-custom-http-headers) header

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188866409
  • Loading branch information
ngolubovic authored and ronshapiro committed Mar 13, 2018
1 parent 7f1defa commit 9b9a175
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions android/guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -349,6 +349,17 @@ private ReferrerPolicyValues() {}
public static final String X_REQUESTED_WITH = "X-Requested-With";
/** The HTTP {@code X-User-IP} header field name. */
public static final String X_USER_IP = "X-User-IP";
/**
* The HTTP <a href="https://goo.gl/VKpXxa">{@code X-Download-Options}</a> header field name.
*
* <p>When the new X-Download-Options header is present with the value {@code noopen}, the user is
* prevented from opening a file download directly; instead, they must first save the file
* locally.
*
* @since NEXT
*/
@Beta
public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options";
/** The HTTP {@code X-XSS-Protection} header field name. */
public static final String X_XSS_PROTECTION = "X-XSS-Protection";
/**
Expand Down
11 changes: 11 additions & 0 deletions guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -349,6 +349,17 @@ private ReferrerPolicyValues() {}
public static final String X_REQUESTED_WITH = "X-Requested-With";
/** The HTTP {@code X-User-IP} header field name. */
public static final String X_USER_IP = "X-User-IP";
/**
* The HTTP <a href="https://goo.gl/VKpXxa">{@code X-Download-Options}</a> header field name.
*
* <p>When the new X-Download-Options header is present with the value {@code noopen}, the user is
* prevented from opening a file download directly; instead, they must first save the file
* locally.
*
* @since NEXT
*/
@Beta
public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options";
/** The HTTP {@code X-XSS-Protection} header field name. */
public static final String X_XSS_PROTECTION = "X-XSS-Protection";
/**
Expand Down

0 comments on commit 9b9a175

Please sign in to comment.