diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-13 13:01:41 +0300 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-13 13:01:51 +0300 |
commit | a98191f43560ea2ddbbf848c1c727daeed2e39ae (patch) | |
tree | bc7fb26998371d914ba7648c035bcfff55a43a67 /fs.go | |
parent | Client, HostClient, PipelineClient: verify TLS server name (diff) | |
download | fasthttp-a98191f43560ea2ddbbf848c1c727daeed2e39ae.tar.gz fasthttp-a98191f43560ea2ddbbf848c1c727daeed2e39ae.tar.bz2 fasthttp-a98191f43560ea2ddbbf848c1c727daeed2e39ae.zip |
Use standard compress/* packages instead of github.com/klauspost/compress/*
The reasons are:
- @klauspost optimized standard packages in go1.7+
- This removes an external dependency from fasthttp
Diffstat (limited to 'fs.go')
-rw-r--r-- | fs.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2,6 +2,7 @@ package fasthttp import ( "bytes" + "compress/gzip" "errors" "fmt" "html" @@ -15,8 +16,6 @@ import ( "strings" "sync" "time" - - "github.com/klauspost/compress/gzip" ) // ServeFileBytesUncompressed returns HTTP response containing file contents |