camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CAMEL-7246) [cxfrs] SimpleConsumer returns wrong Content-Type
Date Thu, 27 Feb 2014 10:22:21 GMT


Sergey Beryozkin commented on CAMEL-7246:

Hi Raul, 

Do you think we can block the copying of the input Content-Type to the output *by default*,
without having to start blocking the whole headers via the header strategy, when the Content-Type
of the response is already available ?

This can be checked on the CXF exchange, exchange.get(org.apache.cxf.message.Message.CONTENT_TYPE)

Otherwise we have the side-effects, like the one in the attached test, and another one when
we have a wildcard Content-Type in GET requests, this wildcard (*/*) overrides the Content-Type
of the response derived from @Produces

Thanks, Sergey

> [cxfrs] SimpleConsumer returns wrong Content-Type
> -------------------------------------------------
>                 Key: CAMEL-7246
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 2.12.2
>            Reporter: Alexey Markevich
>         Attachments:
> Looks like Content-Type is taken from request

This message was sent by Atlassian JIRA

View raw message