From 173823695f9bf0e9e2a45957d27be57ae64064df Mon Sep 17 00:00:00 2001 From: zzz Date: Tue, 21 Nov 2017 00:06:32 +0000 Subject: [PATCH] HTTP Proxy: Better HTTP status message when no outproxy configured --- .../java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientBase.java | 4 ++-- installer/resources/proxy/noproxy-header.ht | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientBase.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientBase.java index 9ea12bea7..6365f5d3a 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientBase.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientBase.java @@ -80,7 +80,7 @@ public abstract class I2PTunnelHTTPClientBase extends I2PTunnelClientBase implem protected final List _proxyList; protected final static String ERR_NO_OUTPROXY = - "HTTP/1.1 503 Service Unavailable\r\n"+ + "HTTP/1.1 503 No Outproxy Configured\r\n"+ "Content-Type: text/html; charset=iso-8859-1\r\n"+ "Cache-control: no-cache\r\n"+ "Connection: close\r\n"+ @@ -88,7 +88,7 @@ public abstract class I2PTunnelHTTPClientBase extends I2PTunnelClientBase implem "\r\n"+ "

I2P ERROR: No outproxy found

"+ "Your request was for a site outside of I2P, but you have no "+ - "HTTP outproxy configured. Please configure an outproxy in I2PTunnel"; + "outproxy configured. Please configure an outproxy in I2PTunnel"; protected final static String ERR_DESTINATION_UNKNOWN = "HTTP/1.1 503 Service Unavailable\r\n" + diff --git a/installer/resources/proxy/noproxy-header.ht b/installer/resources/proxy/noproxy-header.ht index 670639201..1888d7fd3 100644 --- a/installer/resources/proxy/noproxy-header.ht +++ b/installer/resources/proxy/noproxy-header.ht @@ -1,4 +1,4 @@ -HTTP/1.1 503 Service Unavailable +HTTP/1.1 503 No Outproxy Configured Content-Type: text/html; charset=UTF-8 Cache-control: no-cache Connection: close