dblevins 2005/03/15 23:09:03
Modified: modules/core/src/java/org/openejb/server/httpd
HttpServer.java
Log:
Slipped by me in the URL to URI switch
Revision Changes Path
1.5 +4 -3
openejb/modules/core/src/java/org/openejb/server/httpd/HttpServer.java
Index: HttpServer.java
===================================================================
RCS file:
/scm/openejb/openejb/modules/core/src/java/org/openejb/server/httpd/HttpServer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- HttpServer.java 3 Feb 2005 03:09:54 -0000 1.4
+++ HttpServer.java 16 Mar 2005 04:09:03 -0000 1.5
@@ -50,6 +50,7 @@
import java.io.PrintWriter;
import java.net.Socket;
import java.net.URL;
+import java.net.URI;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
@@ -197,11 +198,11 @@
throw new OpenEJBException("Could not read the request.\n" +
t.getClass().getName() + ":\n" + t.getMessage(), t);
}
- URL uri = null;
+ URI uri = null;
String location = null;
try {
uri = req.getURI();
- location = uri.getFile();
+ location = uri.getPath();
int querry = location.indexOf("?");
if (querry != -1) {
location = location.substring(0, querry);