snichol 2002/07/30 11:46:38
Modified: java/src/org/apache/soap/transport/http Cookie.java
Log:
Use URL#getFile instead of URL#getPath, since the latter is not correct
with JDK 1.3.x and later if the URL has a query string.
Revision Changes Path
1.3 +3 -3 xml-soap/java/src/org/apache/soap/transport/http/Cookie.java
Index: Cookie.java
===================================================================
RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/transport/http/Cookie.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Cookie.java 11 Jul 2002 22:03:11 -0000 1.2
+++ Cookie.java 30 Jul 2002 18:46:38 -0000 1.3
@@ -430,10 +430,10 @@
}
/* Check the path */
if (path != null) {
- if (!url.getPath().startsWith(path))
+ if (!url.getFile().startsWith(path))
return false;
} else {
- if (!url.getPath().startsWith(defaultPath))
+ if (!url.getFile().startsWith(defaultPath))
return false;
}
/* Check the port */
@@ -468,7 +468,7 @@
defaultPort = url.getPort();
if (defaultPort == -1)
defaultPort = DEFAULT_HTTP_PORT;
- defaultPath = url.getPath();
+ defaultPath = url.getFile();
int index = defaultPath.lastIndexOf('/');
if (index != -1)
defaultPath = defaultPath.substring(0, index);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>