aboutsummaryrefslogtreecommitdiff
path: root/header.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-09-10 18:49:45 +0200
committerGravatar GitHub <noreply@github.com> 2021-09-10 18:49:45 +0200
commit46d92356a82724771e38504ce73a4a301f2cd7a7 (patch)
treedef0a8f5c88d2568b01e7e74cc86398f8ad37295 /header.go
parentAdding new compressible prefixes (#1092) (diff)
downloadfasthttp-46d92356a82724771e38504ce73a4a301f2cd7a7.tar.gz
fasthttp-46d92356a82724771e38504ce73a4a301f2cd7a7.tar.bz2
fasthttp-46d92356a82724771e38504ce73a4a301f2cd7a7.zip
Check go fmt during lint (#1097)
Diffstat (limited to 'header.go')
-rw-r--r--header.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/header.go b/header.go
index 73e9844..f15ef37 100644
--- a/header.go
+++ b/header.go
@@ -271,11 +271,11 @@ func (h *RequestHeader) SetContentLength(contentLength int) {
func (h *ResponseHeader) isCompressibleContentType() bool {
contentType := h.ContentType()
return bytes.HasPrefix(contentType, strTextSlash) ||
- bytes.HasPrefix(contentType, strApplicationSlash) ||
- bytes.HasPrefix(contentType, strImageSVG) ||
- bytes.HasPrefix(contentType, strImageIcon) ||
- bytes.HasPrefix(contentType, strFontSlash) ||
- bytes.HasPrefix(contentType, strMultipartSlash)
+ bytes.HasPrefix(contentType, strApplicationSlash) ||
+ bytes.HasPrefix(contentType, strImageSVG) ||
+ bytes.HasPrefix(contentType, strImageIcon) ||
+ bytes.HasPrefix(contentType, strFontSlash) ||
+ bytes.HasPrefix(contentType, strMultipartSlash)
}
// ContentType returns Content-Type header value.