0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-02-24 23:57:05 -05:00

Gzip: Append to Vary header instead of replacing.

This commit is contained in:
Craig Peterson 2015-12-15 08:56:44 -07:00
parent f11cd4d9dd
commit 34d3cd7c92

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