We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm looking at the code here:
func DefaultDecompressHandle(c *gin.Context) { if c.Request.Body == nil { return } r, err := gzip.NewReader(c.Request.Body) if err != nil { c.AbortWithError(http.StatusBadRequest, err) return } c.Request.Header.Del("Content-Encoding") c.Request.Header.Del("Content-Length") c.Request.Body = r }
I don't see a close on the gzip.NewReader which the documentation says should be called. Is this handling close correctly?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm looking at the code here:
I don't see a close on the gzip.NewReader which the documentation says should be called. Is this handling close correctly?
The text was updated successfully, but these errors were encountered: