diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2021-09-10 18:49:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 18:49:45 +0200 |
commit | 46d92356a82724771e38504ce73a4a301f2cd7a7 (patch) | |
tree | def0a8f5c88d2568b01e7e74cc86398f8ad37295 /header.go | |
parent | Adding new compressible prefixes (#1092) (diff) | |
download | fasthttp-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.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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. |