Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0.RC3
-
None
-
Unknown
Description
Camel undertow always propagates the same host header from source to target. There is no option to disable this.
<route> <from uri="undertow:http://localhost:8189"/> <log message="Source ${in.headers.Host}" /> <to uri="undertow:http://localhost:8289"/> </route> <route> <from uri="undertow:http://localhost:8289"/> <log message="Target ${in.headers.Host}" /> </route>
Result:
2019-11-05 12:43:54.738 INFO 30967 --- [ XNIO-2 task-1] route1 : Source localhost:8189 2019-11-05 12:43:54.789 INFO 30967 --- [ XNIO-3 task-1] route2 : Target localhost:8189
Expected:
2019-11-05 12:43:54.738 INFO 30967 --- [ XNIO-2 task-1] route1 : Source localhost:8189 2019-11-05 12:43:54.789 INFO 30967 --- [ XNIO-3 task-1] route2 : Target localhost:8289
An option to disable the preservation of the original host is present in camel-http