Browse Source

Update HTTPProxy.cpp (#1794)

Remove DoNotTrack flag from HTTP Request header.
pull/1797/head
Jigen 2 years ago committed by GitHub
parent
commit
01ea1854bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      libi2pd_client/HTTPProxy.cpp

1
libi2pd_client/HTTPProxy.cpp

@ -249,6 +249,7 @@ namespace proxy {
req.RemoveHeader("Via"); req.RemoveHeader("Via");
req.RemoveHeader("From"); req.RemoveHeader("From");
req.RemoveHeader("Forwarded"); req.RemoveHeader("Forwarded");
req.RemoveHeader("DNT"); // Useless DoNotTrack flag
req.RemoveHeader("Accept", "Accept-Encoding"); // Accept*, but Accept-Encoding req.RemoveHeader("Accept", "Accept-Encoding"); // Accept*, but Accept-Encoding
/* drop proxy-disclosing headers */ /* drop proxy-disclosing headers */
req.RemoveHeader("X-Forwarded"); req.RemoveHeader("X-Forwarded");

Loading…
Cancel
Save