Commit 3f787a20 authored by Abiola Ibrahim's avatar Abiola Ibrahim

Merge pull request #438 from captncraig/patch-1

Gzip: Append to Vary header instead of replacing.
parents 6276be4e 34d3cd7c
......@@ -113,7 +113,7 @@ type gzipResponseWriter struct {
func (w gzipResponseWriter) WriteHeader(code int) {
w.Header().Del("Content-Length")
w.Header().Set("Content-Encoding", "gzip")
w.Header().Set("Vary", "Accept-Encoding")
w.Header().Add("Vary", "Accept-Encoding")
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