Skip to content
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

bugfix: fix module order to avoid taking effect before other modules such as sub filter module #31

Merged
merged 2 commits into from Apr 22, 2024

Conversation

HanadaLee
Copy link
Contributor

The related issue: #30

This pull request refers to the ngx_brotli module to avoid compression before ngx_http_sub_module takes effect.

…such as sub filter module

Module order is incorrect for compression module. For example, if using ngx_http_sub_module, string is not replaced because it it tries to replace content when it is already compressed.

For this purpose, you need to add module sorting in config to adjust the order in which modules take effect.
ngx_module_order doesn't work with static modules, so we must re-order filters.
@tokers tokers merged commit f4ba115 into tokers:master Apr 22, 2024
1 check passed
@tokers
Copy link
Owner

tokers commented Apr 22, 2024

@HanadaLee Thanks for the PR! Merged it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants