You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/02/02 18:54:58 UTC
cvs commit: ws-axis/java/src/org/apache/axis/transport/http HTTPSender.java
dims 2005/02/02 09:54:58
Modified: java/src/org/apache/axis/transport/http HTTPSender.java
Log:
Treat both HTTP return code 302 and 307 the same. (code-fix from Jonas Team)
Revision Changes Path
1.125 +3 -2 ws-axis/java/src/org/apache/axis/transport/http/HTTPSender.java
Index: HTTPSender.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/HTTPSender.java,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -r1.124 -r1.125
--- HTTPSender.java 3 Dec 2004 21:54:06 -0000 1.124
+++ HTTPSender.java 2 Feb 2005 17:54:58 -0000 1.125
@@ -663,8 +663,9 @@
} else if ((contentType != null) && !contentType.startsWith("text/html")
&& ((returnCode > 499) && (returnCode < 600))) {
// SOAP Fault should be in here - so fall through
- } else if ((location != null) && (returnCode == 307)) {
- // Temporary Redirect (HTTP: 307)
+ } else if ((location != null) &&
+ ((returnCode == 302) || (returnCode == 307))) {
+ // Temporary Redirect (HTTP: 302/307)
// close old connection
inp.close();
socketHolder.getSocket().close();