We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 262eca6 commit 79e888fCopy full SHA for 79e888f
handler.go
@@ -99,7 +99,7 @@ func (g *gzipHandler) Handle(c *gin.Context) {
99
}
100
101
func (g *gzipHandler) shouldCompress(req *http.Request) bool {
102
- if !strings.Contains(req.Header.Get("Accept-Encoding"), "gzip") ||
+ if !strings.Contains(req.Header.Get(headerAcceptEncoding), "gzip") ||
103
strings.Contains(req.Header.Get("Connection"), "Upgrade") {
104
return false
105
0 commit comments