Commit 9d26a926 authored by Thomas Hansen's avatar Thomas Hansen

added comment about encoding header

parent 1b17072a
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment