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:19:05 UTC

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

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.


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1095.
--------------------------------

    Resolution: Fixed

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


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ 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.