diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index cbf0fd556..c85388f9f 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -64,7 +64,7 @@ import net.i2p.util.Translate; * * If the $site resolves with the I2P naming service, then it is directed towards * that eepsite, otherwise it is directed towards this client's outproxy (typically - * "squid.i2p"). Only HTTP is supported (no HTTPS, ftp, mailto, etc). Both GET + * "squid.i2p"). Only HTTP and HTTPS are supported (no ftp, mailto, etc). Both GET * and POST have been tested, though other $methods should work. * */ @@ -165,7 +165,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn "\r\n" + "

I2P ERROR: NON-HTTP PROTOCOL

" + "The request uses a bad protocol. " + - "The I2P HTTP Proxy supports http:// requests ONLY. Other protocols such as https:// and ftp:// are not allowed.
").getBytes(); + "The I2P HTTP Proxy supports HTTP and HTTPS requests only. Other protocols such as FTP are not allowed.
").getBytes(); private final static byte[] ERR_BAD_URI = ("HTTP/1.1 403 Bad URI\r\n" + "Content-Type: text/html; charset=iso-8859-1\r\n" + diff --git a/installer/resources/proxy/protocol-header.ht b/installer/resources/proxy/protocol-header.ht index 01c45040a..0599ff58b 100644 --- a/installer/resources/proxy/protocol-header.ht +++ b/installer/resources/proxy/protocol-header.ht @@ -19,7 +19,7 @@ Proxy-Connection: close

_("Warning: Non-HTTP Protocol")

_("The request uses a bad protocol.") -_("The I2P HTTP Proxy supports {0}http://{1} requests ONLY.", "", "") -_("Other protocols such as {0}https://{1} and {0}ftp://{1} are not allowed.", "", "") +_("The I2P HTTP Proxy supports HTTP and HTTPS requests only.") +_("Other protocols such as FTP are not allowed.")