Repository: cxf
Updated Branches:
  refs/heads/master a05d75086 -> 19c1279dc


[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/19c1279d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/19c1279d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/19c1279d

Branch: refs/heads/master
Commit: 19c1279dc270766474f9284e7d33a460de8f3699
Parents: a05d750
Author: Sergey Beryozkin <[email protected]>
Authored: Sat Mar 26 13:14:23 2016 +0000
Committer: Sergey Beryozkin <[email protected]>
Committed: Sat Mar 26 13:14:23 2016 +0000

----------------------------------------------------------------------
 .../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/19c1279d/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);

Reply via email to