diff --git a/compress.go b/compress.go index 8b3d6d227b..d723838135 100644 --- a/compress.go +++ b/compress.go @@ -2,13 +2,14 @@ package fasthttp import ( "bytes" - "compress/flate" - "compress/gzip" - "compress/zlib" "fmt" "io" "os" "sync" + + "github.com/klauspost/compress/flate" + "github.com/klauspost/compress/gzip" + "github.com/klauspost/compress/zlib" ) // Supported compression levels. diff --git a/fs.go b/fs.go index 8c362601f6..d1d69bb75f 100644 --- a/fs.go +++ b/fs.go @@ -2,7 +2,6 @@ package fasthttp import ( "bytes" - "compress/gzip" "errors" "fmt" "html" @@ -16,6 +15,8 @@ import ( "strings" "sync" "time" + + "github.com/klauspost/compress/gzip" ) // ServeFileUncompressed returns HTTP response containing file contents