1
0
Fork 0

Remove GZIPHandler fork.

This commit is contained in:
Ludovic Fernandez 2017-09-18 11:04:03 +02:00 committed by Traefiker
parent 2296aab5a8
commit 7c35337999
7 changed files with 214 additions and 101 deletions

View file

@ -18,7 +18,6 @@ func (c *Compress) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.
func gzipHandler(h http.Handler) http.Handler {
wrapper, err := gziphandler.GzipHandlerWithOpts(
&gziphandler.GzipResponseWriterWrapper{},
gziphandler.CompressionLevel(gzip.DefaultCompression),
gziphandler.MinSize(gziphandler.DefaultMinSize))
if err != nil {