From 160753541688d67226dc2ae85b6f0bfd339f8286 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 24 Aug 2017 15:13:15 -0400 Subject: [PATCH] strip out Accept and From headers --- libi2pd_client/HTTPProxy.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libi2pd_client/HTTPProxy.cpp b/libi2pd_client/HTTPProxy.cpp index 50a45e99..5056b737 100644 --- a/libi2pd_client/HTTPProxy.cpp +++ b/libi2pd_client/HTTPProxy.cpp @@ -200,10 +200,11 @@ namespace proxy { void HTTPReqHandler::SanitizeHTTPRequest(i2p::http::HTTPReq & req) { /* drop common headers */ - req.RemoveHeader ("Referer"); + req.RemoveHeader("Referer"); req.RemoveHeader("Via"); + req.RemoveHeader("From"); req.RemoveHeader("Forwarded"); - req.RemoveHeader("Accept-", "Accept-Encoding"); // Accept-*, but Accept-Encoding + req.RemoveHeader("Accept", "Accept-Encoding"); // Accept*, but Accept-Encoding /* drop proxy-disclosing headers */ req.RemoveHeader("X-Forwarded"); req.RemoveHeader("Proxy-"); // Proxy-*