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(client): remove host header on http2 / http3 #1163

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

joelwurtz
Copy link
Contributor

Hey,

I was playing a bit with the client, and it seems that it has the same bug as the client from actix-web actix/actix-web#3495 where having an host header on nginx will cause a 400.

This header is not used when on http2/http3 since it use the pseudo authority header, so i removed it in both cases to avoid this problem (don't know if nginx will have the same problem with http3, but at least it prevent it and should be harmless)

@fakeshadow
Copy link
Collaborator

Thanks for the PR. Do you mind making a quick clippy fix as the project is targeting nightly rust for linting and formatting?

@joelwurtz
Copy link
Contributor Author

Should be good

@joelwurtz
Copy link
Contributor Author

relevant failure are due to home package update i think cf https://github.com/rust-lang/cargo/blob/master/crates/home/CHANGELOG.md

@fakeshadow
Copy link
Collaborator

np. I'll resolve the ci issue later as the it has nothing to do with PR.

@fakeshadow fakeshadow merged commit 7fc8fc4 into HFQR:main Dec 18, 2024
11 of 13 checks passed
@joelwurtz joelwurtz deleted the fix/no-host-header branch December 18, 2024 17:13
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