Browse Source

strip out Accept and From headers

pull/932/head
orignal 7 years ago
parent
commit
1607535416
  1. 3
      libi2pd_client/HTTPProxy.cpp

3
libi2pd_client/HTTPProxy.cpp

@ -202,8 +202,9 @@ namespace proxy { @@ -202,8 +202,9 @@ namespace proxy {
/* drop common headers */
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-*

Loading…
Cancel
Save