diff options
author | Kyle Unverferth <kyle@kyleu.com> | 2021-09-07 02:03:41 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 10:03:41 +0200 |
commit | 713da4e33f2b5af08241edc5712cf43d7e3b0e65 (patch) | |
tree | 685bf76def387ff829deae033f39c04c5003aab3 /strings.go | |
parent | remove unnecessary op (#1095) (diff) | |
download | fasthttp-713da4e33f2b5af08241edc5712cf43d7e3b0e65.tar.gz fasthttp-713da4e33f2b5af08241edc5712cf43d7e3b0e65.tar.bz2 fasthttp-713da4e33f2b5af08241edc5712cf43d7e3b0e65.zip |
* Adding "image/svg" as compressible prefix
* Adding additional compressible prefixes from https://support.cloudflare.com/hc/en-us/articles/200168396-What-will-Cloudflare-compress-
Diffstat (limited to 'strings.go')
-rw-r--r-- | strings.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -71,7 +71,12 @@ var ( strMultipartFormData = []byte("multipart/form-data") strBoundary = []byte("boundary") strBytes = []byte("bytes") - strTextSlash = []byte("text/") - strApplicationSlash = []byte("application/") strBasicSpace = []byte("Basic ") + + strApplicationSlash = []byte("application/") + strImageSVG = []byte("image/svg") + strImageIcon = []byte("image/x-icon") + strFontSlash = []byte("font/") + strMultipartSlash = []byte("multipart/") + strTextSlash = []byte("text/") ) |