You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we make the oubound rest call we have a requirement to use the NAT IP address instead of the actual host name. When making such calls we need to pass the host header for the call to succeed. But currently in netty there is no provision to include the host header. Netty adds a host header which it derives from the Uri. If we explictly add a host header in the request ,netty adds one more host header which results in a bad request.
We need a way to override the hostheader in the request.
code from NettyConnector which sets the header:
nettyRequest.headers().add(HttpHeaderNames.HOST, jerseyRequest.getUri().getHost());
we are using jersey with netty connector version 2.37
The text was updated successfully, but these errors were encountered:
When we make the oubound rest call we have a requirement to use the NAT IP address instead of the actual host name. When making such calls we need to pass the host header for the call to succeed. But currently in netty there is no provision to include the host header. Netty adds a host header which it derives from the Uri. If we explictly add a host header in the request ,netty adds one more host header which results in a bad request.
We need a way to override the hostheader in the request.
code from NettyConnector which sets the header:
nettyRequest.headers().add(HttpHeaderNames.HOST, jerseyRequest.getUri().getHost());
we are using jersey with netty connector version 2.37
The text was updated successfully, but these errors were encountered: