I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit b925f517 authored by zzz's avatar zzz
Browse files

i2ptunnel: Block 'Proxy' header

parent 767476ea
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,9 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer { ...@@ -69,7 +69,9 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer {
private static final String SERVER_HEADER = "Server"; private static final String SERVER_HEADER = "Server";
private static final String X_POWERED_BY_HEADER = "X-Powered-By"; private static final String X_POWERED_BY_HEADER = "X-Powered-By";
private static final String X_RUNTIME_HEADER = "X-Runtime"; // Rails private static final String X_RUNTIME_HEADER = "X-Runtime"; // Rails
private static final String[] SERVER_SKIPHEADERS = {SERVER_HEADER, X_POWERED_BY_HEADER, X_RUNTIME_HEADER }; // https://httpoxy.org
private static final String PROXY_HEADER = "Proxy";
private static final String[] SERVER_SKIPHEADERS = {SERVER_HEADER, X_POWERED_BY_HEADER, X_RUNTIME_HEADER, PROXY_HEADER};
/** timeout for first request line */ /** timeout for first request line */
private static final long HEADER_TIMEOUT = 15*1000; private static final long HEADER_TIMEOUT = 15*1000;
/** total timeout for the request and all the headers */ /** total timeout for the request and all the headers */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment