cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: [CXF-6007] Support for retransmits for HTTP requests with no content provided the auth supplier supports retransmits
Date Mon, 22 Sep 2014 10:41:00 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes feb97e5b1 -> da373ca76


[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/da373ca7
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/da373ca7
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/da373ca7

Branch: refs/heads/3.0.x-fixes
Commit: da373ca76024bd0419473f0482c8d2d033bc4ed0
Parents: feb97e5
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Mon Sep 22 11:39:24 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Mon Sep 22 11:40:23 2014 +0100

----------------------------------------------------------------------
 .../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/da373ca7/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 21dc5d5..da1a31e 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
@@ -1374,7 +1374,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