Skip to content

Ignore host header in proxied request regardless it's casing #79

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

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

joelholzerxovis
Copy link
Contributor

Resolves #77

Motivation:
I encountered an edge case which is not handled properly. The method sendRequest in the class ProxiedRequest ignores on line 173 the "host" header. In our application, I encountered the issue, that the "Host" header is starting with an Uppercase letter. Therefore it is added to the request on line 174, but it shouldn't.

This fix ignores the host header regardless it's casing.

Copy link
Contributor

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @joelholzerxovis !

@tsegismont tsegismont merged commit 3f1621c into eclipse-vertx:4.x Jun 17, 2024
4 checks passed
@tsegismont
Copy link
Contributor

Can you please create the same PR for the main branch?

@joelholzerxovis joelholzerxovis deleted the issue/77 branch June 20, 2024 06:54
@joelholzerxovis
Copy link
Contributor Author

Can you please create the same PR for the main branch?

Hi @tsegismont

I have created a PR for the main branch -> #82

Thank you for reviewing 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.

2 participants