Commit 34d3cd7c authored by Craig Peterson's avatar Craig Peterson

Gzip: Append to Vary header instead of replacing.

parent f11cd4d9
...@@ -113,7 +113,7 @@ type gzipResponseWriter struct { ...@@ -113,7 +113,7 @@ type gzipResponseWriter struct {
func (w gzipResponseWriter) WriteHeader(code int) { func (w gzipResponseWriter) WriteHeader(code int) {
w.Header().Del("Content-Length") w.Header().Del("Content-Length")
w.Header().Set("Content-Encoding", "gzip") w.Header().Set("Content-Encoding", "gzip")
w.Header().Set("Vary", "Accept-Encoding") w.Header().Add("Vary", "Accept-Encoding")
w.ResponseWriter.WriteHeader(code) w.ResponseWriter.WriteHeader(code)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment