Repository: cxf Updated Branches: refs/heads/3.1.x-fixes 789e12c7f -> 3a02b272b
[CXF-6842] Minor update to make sure the response Content-Type is set on the exchange Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/3a02b272 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3a02b272 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3a02b272 Branch: refs/heads/3.1.x-fixes Commit: 3a02b272b9398c8ab34d41e1863815c4213fd9e2 Parents: 789e12c Author: Sergey Beryozkin <[email protected]> Authored: Sat Mar 26 13:14:23 2016 +0000 Committer: Sergey Beryozkin <[email protected]> Committed: Wed Mar 30 15:20:02 2016 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/3a02b272/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java index 71cad74..c70af20 100644 --- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java +++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ExceptionUtils.java @@ -95,7 +95,7 @@ public final class ExceptionUtils { Throwable unwrappedException = ex.getCause(); if (unwrappedException instanceof WebApplicationException) { WebApplicationException webEx = (WebApplicationException)unwrappedException; - return webEx.getResponse(); + response = webEx.getResponse(); } } JAXRSUtils.setMessageContentType(currentMessage, response);
