Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-06-04 09:08:02 +0000
committerGreg Wilkins2012-06-04 09:08:02 +0000
commit66d171f7d0585cf1a5403c7ae65786d6d4ae7883 (patch)
tree1592025f825733c8141e12faafacb51c577208a7 /jetty-http
parent3e5eff37195b36426a50a6c45d27c3a80d3bc1f2 (diff)
downloadorg.eclipse.jetty.project-66d171f7d0585cf1a5403c7ae65786d6d4ae7883.tar.gz
org.eclipse.jetty.project-66d171f7d0585cf1a5403c7ae65786d6d4ae7883.tar.xz
org.eclipse.jetty.project-66d171f7d0585cf1a5403c7ae65786d6d4ae7883.zip
381521 set Vary:Accept-Encoding header for compressed content
Diffstat (limited to 'jetty-http')
-rw-r--r--jetty-http/src/main/java/org/eclipse/jetty/http/gzip/AbstractCompressedStream.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/AbstractCompressedStream.java b/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/AbstractCompressedStream.java
index 39aaa99516..316bcb27ca 100644
--- a/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/AbstractCompressedStream.java
+++ b/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/AbstractCompressedStream.java
@@ -235,6 +235,7 @@ public abstract class AbstractCompressedStream extends ServletOutputStream
throw new IllegalStateException();
setHeader("Content-Encoding", _encoding);
+ setHeader("Vary","Accept-Encoding");
if (_response.containsHeader("Content-Encoding"))
{

Back to the top