Use HTTP 404 for Bad URI (c/f jetty, lighttpd)

This commit is contained in:
str4d
2013-04-21 13:30:22 +00:00
parent b872764624
commit a3886b0080
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 400 Bad URI\r\n" +
("HTTP/1.1 404 Bad URI\r\n" +
"Content-Type: text/html; charset=iso-8859-1\r\n" +
"Cache-control: no-cache\r\n" +
"\r\n" +