cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [09/10] git commit: [CXF-6007] Support for retransmits for HTTP requests with no content provided the auth supplier supports retransmits
Date Tue, 07 Oct 2014 18:46:21 GMT
[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 <sberyozkin@talend.com>
Authored: Mon Sep 22 11:39:24 2014 +0100
Committer: Daniel Kulp <dkulp@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);


Mime
View raw message