mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
Merge pull request #438 from captncraig/patch-1
Gzip: Append to Vary header instead of replacing.
This commit is contained in:
commit
3f787a20e3
|
@ -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…
Reference in New Issue
Block a user