[
https://issues.apache.org/activemq/browse/CAMEL-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47423#action_47423
]
Claus Ibsen commented on CAMEL-1095:
------------------------------------
Example as the http headers returned now
{code}
HTTP/1.x 200 OK
Transfer-Encoding: chunked
Server: Jetty(6.1.11)
{code}
And with a code fix we have for the same request:
{code}
HTTP/1.x 200 OK
Content-Type: image/jpeg
Content-Length: 10249
Server: Jetty(6.1.11)
{code}
> camel-jetty - Content-Type should be set on response if provided as OUT header
> ------------------------------------------------------------------------------
>
> Key: CAMEL-1095
> URL: https://issues.apache.org/activemq/browse/CAMEL-1095
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.5.1, 2.0.0
>
>
> The Content-Type is not set in HttpBinding if an end-user has provided one as
> a OUT header.
> So if an user exposes a Jetty service and lets requests fly in that is
> text/plain and want to return a response that is image/jpeg or the likes the
> content type can not be set as:
> exchange.getOut().setHeader("Content-Type", "image/jpeg");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.