mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-01 00:23:48 +03:00
added comment about encoding header
This commit is contained in:
parent
1b17072a89
commit
9d26a9268b
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ func (g Gzip) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
|
|||
return g.Next.ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
r.Header.Del("Accept-Encoding")
|
||||
r.Header.Del("Accept-Encoding") // Removes header to prevent double encoding by ambitious fastcgi implementations
|
||||
w.Header().Set("Content-Encoding", "gzip")
|
||||
gzipWriter := gzip.NewWriter(w)
|
||||
defer gzipWriter.Close()
|
||||
|
|
Loading…
Reference in a new issue