aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Kyle Unverferth <kyle@kyleu.com> 2021-09-07 02:03:41 -0600
committerGravatar GitHub <noreply@github.com> 2021-09-07 10:03:41 +0200
commit713da4e33f2b5af08241edc5712cf43d7e3b0e65 (patch)
tree685bf76def387ff829deae033f39c04c5003aab3 /strings.go
parentremove unnecessary op (#1095) (diff)
downloadfasthttp-713da4e33f2b5af08241edc5712cf43d7e3b0e65.tar.gz
fasthttp-713da4e33f2b5af08241edc5712cf43d7e3b0e65.tar.bz2
fasthttp-713da4e33f2b5af08241edc5712cf43d7e3b0e65.zip
Adding new compressible prefixes (#1092)v1.30.0
* 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.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/strings.go b/strings.go
index 42f73c5..7f12cbc 100644
--- a/strings.go
+++ b/strings.go
@@ -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/")
)