You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/10/07 20:46:21 UTC

[09/10] git commit: [CXF-6007] Support for retransmits for HTTP requests with no content provided the auth supplier supports retransmits

[CXF-6007] Support for retransmits for HTTP requests with no content provided the auth supplier supports retransmits


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

Branch: refs/heads/2.7.x-fixes
Commit: d729e3213c495085b4d87a6558620d4aff6cbaea
Parents: d85a666
Author: Sergey Beryozkin <sb...@talend.com>
Authored: Mon Sep 22 11:39:24 2014 +0100
Committer: Daniel Kulp <dk...@apache.org>
Committed: Tue Oct 7 14:03:20 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/transport/http/HTTPConduit.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/d729e321/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 736023b..281bc3e 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
@@ -1362,7 +1362,9 @@ public abstract class HTTPConduit
         protected void handleRetransmits() throws IOException {
             // If we have a cachedStream, we are caching the request.
             if (cachedStream != null
-                || ("GET".equals(getMethod()) && getClient().isAutoRedirect())) {
+                || KNOWN_HTTP_VERBS_WITH_NO_CONTENT.contains(getMethod()) 
+                   && (getClient().isAutoRedirect()) 
+                       || authSupplier != null && authSupplier.requiresRequestCaching()) {
 
                 if (LOG.isLoggable(Level.FINE) && cachedStream != null) {
                     StringBuilder b = new StringBuilder(4096);