We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51dd498 commit d34904dCopy full SHA for d34904d
handler.go
@@ -63,7 +63,7 @@ func (g *gzipHandler) Handle(c *gin.Context) {
63
func (g *gzipHandler) shouldCompress(req *http.Request) bool {
64
if !strings.Contains(req.Header.Get("Accept-Encoding"), "gzip") ||
65
strings.Contains(req.Header.Get("Connection"), "Upgrade") ||
66
- strings.Contains(req.Header.Get("Content-Type"), "text/event-stream") {
+ strings.Contains(req.Header.Get("Accept"), "text/event-stream") {
67
68
return false
69
}
0 commit comments