Another rfc2068 fix.
ERR_REQUEST_DENIED now returns a 403 status code. Note that I'm assuming this error occurs because the proxy is configured to not allow connection to non-i2p destinations. If it's issued for other reasons we might want to consider using 503 instead.
This commit is contained in:
@ -45,7 +45,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
|
|||||||
private String wwwProxy;
|
private String wwwProxy;
|
||||||
|
|
||||||
private final static byte[] ERR_REQUEST_DENIED =
|
private final static byte[] ERR_REQUEST_DENIED =
|
||||||
("HTTP/1.1 404 Not Found\r\n"+
|
("HTTP/1.1 403 Access Denied\r\n"+
|
||||||
"Content-Type: text/html; charset=iso-8859-1\r\n"+
|
"Content-Type: text/html; charset=iso-8859-1\r\n"+
|
||||||
"Cache-control: no-cache\r\n"+
|
"Cache-control: no-cache\r\n"+
|
||||||
"\r\n"+
|
"\r\n"+
|
||||||
|
Reference in New Issue
Block a user