-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
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
Add compression middleware #18
Add compression middleware #18
Conversation
Can you help add an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The middleware is not applied, please add to the list of default middleware.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try use this instead: https://github.com/go-chi/chi/blob/master/middleware/compress.go
Also, format the source code using go fmt
.
need to change implementation of Default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also test for the response body; it should be decompressed correctly to the original content.
Merged via 39f6423. |
https://pkg.go.dev/github.com/andybalholm/brotli#HTTPCompressor