Skip to content

Proxied request only ignores host header with "host" in lower camel case #77

@joelholzerxovis

Description

@joelholzerxovis

Version

4.5.8

Context

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.

In my opinion, line 173 should be changed to
if (!HOP_BY_HOP_HEADERS.contains(name) && !name.equalsIgnoreCase("host")) {

Hint

I can create a pull request to change this line and extend the test ProxyRequestTest#testUpdateRequestHeaders

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions