mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-22 20:54:11 +08:00
Gzip: Append to Vary header instead of replacing.
This commit is contained in:
parent
f11cd4d9dd
commit
34d3cd7c92
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user