cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/5] git commit: Add a check for gzi in to make sure not for GET.
Date Wed, 04 Jun 2014 18:51:56 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.6.x-fixes 9f5c4e0ae -> 92a819a8d


Add a check for gzi in to make sure not for GET.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/3ad86b70
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3ad86b70
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3ad86b70

Branch: refs/heads/2.6.x-fixes
Commit: 3ad86b702b7369a1c73bac7f6b1b2b3255697068
Parents: 9f5c4e0
Author: Daniel Kulp <dkulp@apache.org>
Authored: Tue May 13 14:44:28 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Jun 4 14:47:11 2014 -0400

----------------------------------------------------------------------
 .../org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/3ad86b70/rt/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java
b/rt/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java
index 0ad1be2..a0772e7 100644
--- a/rt/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java
+++ b/rt/core/src/main/java/org/apache/cxf/transport/common/gzip/GZIPInInterceptor.java
@@ -60,6 +60,9 @@ public class GZIPInInterceptor extends AbstractPhaseInterceptor<Message>
{
     }
 
     public void handleMessage(Message message) throws Fault {
+        if (isGET(message)) {
+            return;
+        }
         // check for Content-Encoding header - we are only interested in
         // messages that say they are gzipped.
         Map<String, List<String>> protocolHeaders = CastUtils.cast((Map<?,
?>)message


Mime
View raw message