diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index feb9551263b6249fc3f3564e9f02a22e9feee5ca..f8177c28109207bed41ccae790114a19233e1916 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -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);