forked from I2P_Developers/i2p.i2p
i2ptunnel: Canonicalize Host header at the server proxy
to prevent duplicate headers being sent to the server resulting in 400 errors as reported by altonen
This commit is contained in:
@ -1224,6 +1224,8 @@ public class I2PTunnelHTTPServer extends I2PTunnelServer {
|
||||
name = "Referer";
|
||||
else if ("connection".equals(lcName))
|
||||
name = "Connection";
|
||||
else if ("host".equals(lcName))
|
||||
name = "Host";
|
||||
|
||||
// For incoming, we remove certain headers to prevent spoofing.
|
||||
// For outgoing, we remove certain headers to improve anonymity.
|
||||
|
Reference in New Issue
Block a user