Merge pull request #438 from captncraig/patch-1

Gzip: Append to Vary header instead of replacing.
This commit is contained in:
Abiola Ibrahim 2015-12-21 20:48:03 +01:00
commit 3f787a20e3

View File

@ -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)
}