[
https://issues.apache.org/activemq/browse/CAMEL-1504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mathis Schwuchow updated CAMEL-1504:
------------------------------------
Attachment: Patch_Issue_CAMEL-1504_V01.patch
I tried to fix the HttpProducer.createMethod(...).
If provided, the HTTP_PATH is appended to the HTTP_URI or the URI from the
endpoint.
Maybe there should also be a check if the URI ends with "/" and the path starts
with "/" to avoid URIs like http://myUri//myPath . Could add it if required.
> HTTP_URI and HTTP_PATH message headers not concatenated when sending messages
> to http endpoint
> ----------------------------------------------------------------------------------------------
>
> Key: CAMEL-1504
> URL: https://issues.apache.org/activemq/browse/CAMEL-1504
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-http
> Affects Versions: 2.0-M1
> Reporter: Mathis Schwuchow
> Attachments: Patch_Issue_CAMEL-1504_V01.patch
>
>
> When a message is sent to an http endpoint, the path specified in the
> HTTP_PATH header is ignored.
> In the HttpProducer.createMethod() of the camel-http component, the URI is
> taken from the HTTP_URI header or the endpoint, but the HTTP_PATH header is
> not concatenated.
> See also the discussion on the mailing list:
> http://www.nabble.com/Setting-a-path-in-message-header-with-Camel-http-2.0M1-td22781504.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.