cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1136837 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Date Fri, 17 Jun 2011 10:26:29 GMT
Author: cschneider
Date: Fri Jun 17 10:26:29 2011
New Revision: 1136837

URL: http://svn.apache.org/viewvc?rev=1136837&view=rev
Log:
Adding support for 307 redirects like discussed on the list

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=1136837&r1=1136836&r2=1136837&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
Fri Jun 17 10:26:29 2011
@@ -1668,6 +1668,7 @@ public class HTTPConduit 
         switch (e.responseCode()) {
         case HttpURLConnection.HTTP_MOVED_PERM: // 301
         case HttpURLConnection.HTTP_MOVED_TEMP: // 302
+        case 307:    
             msg += " that returned location header '" + e.getLocation() + "'";
             break;
         case HttpURLConnection.HTTP_UNAUTHORIZED: // 401



Mime
View raw message