forked from I2P_Developers/i2p.i2p
Proper handling of implied "/" paths
This commit is contained in:
@@ -389,8 +389,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
|
|||||||
// pos is the start of the path
|
// pos is the start of the path
|
||||||
pos = request.indexOf("/");
|
pos = request.indexOf("/");
|
||||||
if (pos == -1) {
|
if (pos == -1) {
|
||||||
method = null;
|
pos = request.length();
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
host = request.substring(0, pos);
|
host = request.substring(0, pos);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user