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
Version
4.5.8
Context
I encountered an edge case which is not handled properly. The method
sendRequest
in the classProxiedRequest
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