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-6184] Setting the transport.retransmit.url property only if it is a redirect-based retransmit
Date Sun, 04 Jan 2015 10:30:42 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes cd473b33a -> 7c68aa260


[CXF-6184] Setting the transport.retransmit.url property only if it is a redirect-based retransmit


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

Branch: refs/heads/2.7.x-fixes
Commit: 7c68aa260b74bb62c3203cf73b4ae0e9368bb77f
Parents: cd473b3
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Sun Jan 4 10:20:37 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Sun Jan 4 10:30:19 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/7c68aa26/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 281bc3e..7664129 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
@@ -1200,7 +1200,6 @@ public abstract class HTTPConduit
         
         protected void retransmit(String newURL) throws IOException {
             setupNewConnection(newURL);
-            outMessage.put("http.retransmit.url", newURL);
             if (cachedStream != null && cachedStream.size() < Integer.MAX_VALUE)
{
                 setFixedLengthStreamingMode((int)cachedStream.size());
             }
@@ -1446,6 +1445,7 @@ public abstract class HTTPConduit
                     throw new IOException(e);
                 }
                 cookies.writeToMessageHeaders(outMessage);
+                outMessage.put("http.retransmit.url", newURL);
                 retransmit(newURL);
                 return true;
             }


Mime
View raw message