Proper handling of implied "/" paths

This commit is contained in:
dream
2011-08-23 04:28:05 +00:00
parent 5fd7997661
commit 73aade4fb3

View File

@@ -389,8 +389,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
// pos is the start of the path
pos = request.indexOf("/");
if (pos == -1) {
method = null;
break;
pos = request.length();
}
host = request.substring(0, pos);