diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2017-05-17 17:10:29 +0300 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2017-05-17 17:10:29 +0300 |
commit | b154429ca951971beae8427b1a918ebce58f64af (patch) | |
tree | 9a9716e3dece82941b1c35381f0dd67d8197dc19 /strings.go | |
parent | Do not compress responses with sizes smaller than 200 bytes (diff) | |
download | fasthttp-b154429ca951971beae8427b1a918ebce58f64af.tar.gz fasthttp-b154429ca951971beae8427b1a918ebce58f64af.tar.bz2 fasthttp-b154429ca951971beae8427b1a918ebce58f64af.zip |
Compress responses only if their content-type starts with text/ or application/
Diffstat (limited to 'strings.go')
-rw-r--r-- | strings.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -68,4 +68,6 @@ var ( strMultipartFormData = []byte("multipart/form-data") strBoundary = []byte("boundary") strBytes = []byte("bytes") + strTextSlash = []byte("text/") + strApplicationSlash = []byte("application/") ) |