forked from I2P_Developers/i2p.i2p
update error pages for HTTPS
This commit is contained in:
@@ -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" +
|
||||
"<html><body><H1>I2P ERROR: NON-HTTP PROTOCOL</H1>" +
|
||||
"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 =
|
||||
("HTTP/1.1 403 Bad URI\r\n" +
|
||||
"Content-Type: text/html; charset=iso-8859-1\r\n" +
|
||||
|
@@ -19,7 +19,7 @@ Proxy-Connection: close
|
||||
<h3>_("Warning: Non-HTTP Protocol")</h3>
|
||||
<p>
|
||||
_("The request uses a bad protocol.")
|
||||
_("The I2P HTTP Proxy supports {0}http://{1} requests ONLY.", "<code>", "</code>")
|
||||
_("Other protocols such as {0}https://{1} and {0}ftp://{1} are not allowed.", "<code>", "</code>")
|
||||
_("The I2P HTTP Proxy supports HTTP and HTTPS requests only.")
|
||||
_("Other protocols such as FTP are not allowed.")
|
||||
</p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user