This commit is contained in:
地平线
2015-07-06 11:22:46 +08:00
parent 98d2919b1f
commit adbdc7f097

View File

@@ -386,7 +386,7 @@ public final class HttpRequest extends Request {
public String[] getRequstURIPaths(String prefix) {
if (requestURI == null || prefix == null) return new String[0];
return requestURI.substring(prefix.length() + (prefix.endsWith("/") ? 0 : 1)).split("//");
return requestURI.substring(requestURI.indexOf(prefix) + prefix.length() + (prefix.endsWith("/") ? 0 : 1)).split("//");
}
public String getRequestURI() {