You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2016/07/25 10:10:20 UTC
[jira] [Resolved] (CXF-6977) content-type for JAXRS response not
set correctly
[ https://issues.apache.org/jira/browse/CXF-6977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-6977.
-----------------------------------
Resolution: Cannot Reproduce
> content-type for JAXRS response not set correctly
> -------------------------------------------------
>
> Key: CXF-6977
> URL: https://issues.apache.org/jira/browse/CXF-6977
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.1.6
> Reporter: Michael Traut
>
> Tried to get
> String contentType = (String) message.get(Message.CONTENT_TYPE);
> but is not set correctly. Seems that
> org.apache.cxf.jaxrs.JAXRSInvoker.setResponseContentTypeIfNeeded(Message, Object)
> checks for "instanceof Response" where "response" is already wrapped in MessageContentsList.
> Btw. headers are not copied at all?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)