mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
Merge pull request #438 from captncraig/patch-1
Gzip: Append to Vary header instead of replacing.
This commit is contained in:
commit
3f787a20e3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue