You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/11/16 10:23:07 UTC

[jira] Commented: (CAMEL-1095) camel-jetty - Content-Type should be set on response if provided as OUT header

    [ https://issues.apache.org/activemq/browse/CAMEL-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47422#action_47422 ] 

Claus Ibsen commented on CAMEL-1095:
------------------------------------

Content-Length is also missing

> 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.