cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6638] Making sure a chunking is possible for PATCH/etc
Date Tue, 13 Oct 2015 16:01:00 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 1156c4efe -> 55ceac45f


[CXF-6638] Making sure a chunking is possible for PATCH/etc


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

Branch: refs/heads/master
Commit: 55ceac45f495a309e3987a7ea73675ab31fb8b2b
Parents: 1156c4e
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Oct 13 17:00:39 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Oct 13 17:00:39 2015 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/transport/http/HTTPConduit.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/55ceac45/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
index 7ba7afa..b0d7647 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
@@ -175,7 +175,7 @@ public abstract class HTTPConduit
     private static final String AUTO_REDIRECT_MAX_SAME_URI_COUNT = "http.redirect.max.same.uri.count";
     
     private static final String HTTP_POST_METHOD = "POST";
-    private static final String HTTP_PUT_METHOD = "PUT";
+    private static final String HTTP_GET_METHOD = "GET";
     private static final Set<String> KNOWN_HTTP_VERBS_WITH_NO_CONTENT = 
         new HashSet<String>(Arrays.asList(new String[]{"GET", "HEAD", "OPTIONS", "TRACE"}));
     /**
@@ -566,8 +566,7 @@ public abstract class HTTPConduit
     protected boolean isChunkingSupported(Message message, String httpMethod) {
         if (HTTP_POST_METHOD.equals(httpMethod)) { 
             return true;
-        }
-        if (HTTP_PUT_METHOD.equals(httpMethod)) {
+        } else if (!HTTP_GET_METHOD.equals(httpMethod)) {
             MessageContentsList objs = MessageContentsList.getContentsList(message);
             if (objs != null && objs.size() > 0) {
                 Object obj = objs.get(0);


Mime
View raw message