You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Cappa Roberto <ro...@guest.telecomitalia.it> on 2011/02/07 14:31:14 UTC
Http component doesn't send Content-Type
Hi,
I've a problem with this simple route (Camel 2.6.0):
from("servlet:///myServlet?matchOnUriPrefix=true").to("http://localhost:8080/service?bridgeEndpoint=true")
If I send an HTTP packet to the servlet, the Content-Type header is removed. The same behavior if I force the Content-Type between from and to.
I saw that this bug was resolved in an older version: https://issues.apache.org/jira/browse/CAMEL-1609
It is quite strange, but in the last version it seems to be the same problem. Where am I wrong?
Thanks.
Re: Http component doesn't send Content-Type
Posted by Willem Jiang <wi...@gmail.com>.
On 2/7/11 10:01 PM, Claus Ibsen wrote:
> On Mon, Feb 7, 2011 at 2:31 PM, Cappa Roberto
> <ro...@guest.telecomitalia.it> wrote:
>> Hi,
>>
>> I've a problem with this simple route (Camel 2.6.0):
>>
>> from("servlet:///myServlet?matchOnUriPrefix=true").to("http://localhost:8080/service?bridgeEndpoint=true")
>>
>> If I send an HTTP packet to the servlet, the Content-Type header is removed. The same behavior if I force the Content-Type between from and to.
>>
>> I saw that this bug was resolved in an older version: https://issues.apache.org/jira/browse/CAMEL-1609
>>
>> It is quite strange, but in the last version it seems to be the same problem. Where am I wrong?
>>
>
> Its fixed on trunk.
> There is a fairly new ticket about the problem.
>
FYI, here is JIRA number
https://issues.apache.org/jira/browse/CAMEL-3608
>
>
>> Thanks.
>>
>
>
>
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Re: Http component doesn't send Content-Type
Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Feb 7, 2011 at 2:31 PM, Cappa Roberto
<ro...@guest.telecomitalia.it> wrote:
> Hi,
>
> I've a problem with this simple route (Camel 2.6.0):
>
> from("servlet:///myServlet?matchOnUriPrefix=true").to("http://localhost:8080/service?bridgeEndpoint=true")
>
> If I send an HTTP packet to the servlet, the Content-Type header is removed. The same behavior if I force the Content-Type between from and to.
>
> I saw that this bug was resolved in an older version: https://issues.apache.org/jira/browse/CAMEL-1609
>
> It is quite strange, but in the last version it seems to be the same problem. Where am I wrong?
>
Its fixed on trunk.
There is a fairly new ticket about the problem.
> Thanks.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/