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

Fix host filter in http2 #690

Merged
merged 2 commits into from
Feb 25, 2024
Merged

Fix host filter in http2 #690

merged 2 commits into from
Feb 25, 2024

Conversation

mateusvmv
Copy link
Contributor

@mateusvmv mateusvmv commented Feb 25, 2024

Requests that come from http2 use the :authority headers and might not include the Host header, so they won't work with the host filter.

This PR makes the host filter check for both, first the :authority then the Host header. If the fix-http1-request-uri feature is enabled, then it only checks the authority.

@chrislearn chrislearn merged commit d90261f into salvo-rs:main Feb 25, 2024
7 checks passed
chrislearn pushed a commit that referenced this pull request Feb 28, 2024
* Host header sometimes is lacking

* Fix warning
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.

2 participants