And back to HTTP 403 for Bad URI (we are refusing to fulfill the request)

This commit is contained in:
str4d
2013-04-21 13:36:59 +00:00
parent a3886b0080
commit d0fa9f8f1e
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
"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();
private final static byte[] ERR_BAD_URI =
("HTTP/1.1 404 Bad URI\r\n" +
("HTTP/1.1 403 Bad URI\r\n" +
"Content-Type: text/html; charset=iso-8859-1\r\n" +
"Cache-control: no-cache\r\n" +
"\r\n" +

View File

@@ -1,4 +1,4 @@
HTTP/1.1 404 Bad URI
HTTP/1.1 403 Bad URI
Content-Type: text/html; charset=UTF-8
Cache-control: no-cache
Connection: close