cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1355160 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Date Thu, 28 Jun 2012 21:22:53 GMT
Author: sergeyb
Date: Thu Jun 28 21:22:52 2012
New Revision: 1355160

URL: http://svn.apache.org/viewvc?rev=1355160&view=rev
Log:
[CXF-4398] Updating HTTPConduit to check 303, patch from Fred B applied

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?rev=1355160&r1=1355159&r2=1355160&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Thu Jun 28 21:22:52 2012
@@ -1008,6 +1008,7 @@ public class HTTPConduit 
         switch(responseCode) {
         case HttpURLConnection.HTTP_MOVED_PERM:
         case HttpURLConnection.HTTP_MOVED_TEMP:
+        case HttpURLConnection.HTTP_SEE_OTHER:    
         case 307:
             connection = redirectRetransmit(origConnection, message, cachedStream);
             break;
@@ -1760,6 +1761,7 @@ public class HTTPConduit 
         switch (e.responseCode()) {
         case HttpURLConnection.HTTP_MOVED_PERM: // 301
         case HttpURLConnection.HTTP_MOVED_TEMP: // 302
+        case HttpURLConnection.HTTP_SEE_OTHER:  // 303    
         case 307:    
             msg += " that returned location header '" + e.getLocation() + "'";
             break;



Mime
View raw message