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:39:42 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 669bd557f -> 9f5b54ed7


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

Branch: refs/heads/master
Commit: 9f5b54ed733f2d254703aabf7b4a3d1f14709142
Parents: 669bd55
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:39:24 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/9f5b54ed/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