Trying to configure an endpoint like
where the hostname starts with the characters "http" leads to an URISyntaxException "Expected scheme-specific part at index http4:"
This behaviour is caused by the following lines in camel-http4's HttpComponent (around line 211):
In our case, the hostname is not prefixed with http:// or https:// which leads to the mentioned exception.
The code in question was introduced within
CAMEL-6880. I'm not shure why the variable remaining is checked for a protocol prefix as it already comes without one. Setting
would solve the problem and does not break any test.