Repository: cxf Updated Branches: refs/heads/3.0.x-fixes af1c18b5a -> c95694abb
[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/c95694ab Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c95694ab Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c95694ab Branch: refs/heads/3.0.x-fixes Commit: c95694abb7f2bf23fcac639b4f45688c191db34b Parents: af1c18b Author: Sergey Beryozkin <[email protected]> Authored: Sat Mar 26 13:14:23 2016 +0000 Committer: Sergey Beryozkin <[email protected]> Committed: Wed Mar 30 15:23:59 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/c95694ab/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 ea24b37..dc97213 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 @@ -99,7 +99,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);
