update error pages for HTTPS

This commit is contained in:
zzz
2014-01-25 15:52:04 +00:00
parent 9ca625a64e
commit d00be4ceee
2 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ import net.i2p.util.Translate;
* *
* If the $site resolves with the I2P naming service, then it is directed towards * 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 * 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. * and POST have been tested, though other $methods should work.
* *
*/ */
@@ -165,7 +165,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
"\r\n" + "\r\n" +
"<html><body><H1>I2P ERROR: NON-HTTP PROTOCOL</H1>" + "<html><body><H1>I2P ERROR: NON-HTTP PROTOCOL</H1>" +
"The request uses a bad 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.<BR>").getBytes(); "The I2P HTTP Proxy supports HTTP and HTTPS requests only. Other protocols such as FTP are not allowed.<BR>").getBytes();
private final static byte[] ERR_BAD_URI = private final static byte[] ERR_BAD_URI =
("HTTP/1.1 403 Bad URI\r\n" + ("HTTP/1.1 403 Bad URI\r\n" +
"Content-Type: text/html; charset=iso-8859-1\r\n" + "Content-Type: text/html; charset=iso-8859-1\r\n" +

View File

@@ -19,7 +19,7 @@ Proxy-Connection: close
<h3>_("Warning: Non-HTTP Protocol")</h3> <h3>_("Warning: Non-HTTP Protocol")</h3>
<p> <p>
_("The request uses a bad protocol.") _("The request uses a bad protocol.")
_("The I2P HTTP Proxy supports {0}http://{1} requests ONLY.", "<code>", "</code>") _("The I2P HTTP Proxy supports HTTP and HTTPS requests only.")
_("Other protocols such as {0}https://{1} and {0}ftp://{1} are not allowed.", "<code>", "</code>") _("Other protocols such as FTP are not allowed.")
</p> </p>
</div> </div>