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:21:12 GMT
Repository: cxf
Updated Branches:
  refs/heads/master b7657a47a -> 16172e3d1


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

Branch: refs/heads/master
Commit: 16172e3d1b7ca22150d42679338008600832a0c5
Parents: b7657a4
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:20:37 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/16172e3d/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 7664525..836b530 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
@@ -1212,7 +1212,6 @@ public abstract class HTTPConduit
         
         protected void retransmit(String newURL) throws IOException {
             setupNewConnection(newURL);
-            outMessage.put("transport.retransmit.url", newURL);
             if (cachedStream != null && cachedStream.size() < Integer.MAX_VALUE)
{
                 setFixedLengthStreamingMode((int)cachedStream.size());
             }
@@ -1454,6 +1453,7 @@ public abstract class HTTPConduit
                     throw new IOException(e);
                 }
                 cookies.writeToMessageHeaders(outMessage);
+                outMessage.put("transport.retransmit.url", newURL);
                 retransmit(newURL);
                 return true;
             }


Mime
View raw message