-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: add brotli plugin #10515
feat: add brotli plugin #10515
Conversation
@yuweizzz great work 👍 |
sure, I will add a documentation about it. |
Nice work! Could you make the ci pass? |
I don't know why it couldn't work in redhat series, need some time to figure it out. |
please make the ci pass |
|
||
local types = conf.types | ||
local content_type = ngx_header["Content-Type"] | ||
if not content_type then |
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.
how about checking content-type before check_accept_encoding
?
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.
I think we should check accept encoding first, if request not allow this encoding, we don't need to check our conf.
Description
add brotli plugin. fixes #9645
Checklist