incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jav...@apache.org
Subject svn commit: r1038800 - /incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java
Date Wed, 24 Nov 2010 20:19:14 GMT
Author: javier
Date: Wed Nov 24 20:19:14 2010
New Revision: 1038800

URL: http://svn.apache.org/viewvc?rev=1038800&view=rev
Log:
DROIDS-103. Fix issue with robots.txt path.

Modified:
    incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java

Modified: incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java
URL: http://svn.apache.org/viewvc/incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java?rev=1038800&r1=1038799&r2=1038800&view=diff
==============================================================================
--- incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java
(original)
+++ incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/protocol/http/HttpProtocol.java
Wed Nov 24 20:19:14 2010
@@ -81,19 +81,11 @@ public class HttpProtocol extends Loggab
       return forceAllow;
     }
 
-    String path = uri.getPath();
-    int i = path.lastIndexOf('/');
-    if (i != -1) {
-      path = path.substring(0, i);
-    } else {
-      path = path + "/";
-    }
-    
     URI baseURI;
     try {
       baseURI = new URI(
           uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), 
-          path, null, null);
+          "/", null, null);
     } catch (URISyntaxException ex) {
       log.error("Unable to determine base URI for " + uri);
       return false;



Mime
View raw message