Update HTTPProxy.cpp (#1794)

Remove DoNotTrack flag from HTTP Request header.
This commit is contained in:
Jigen 2022-10-23 18:33:52 +00:00 committed by GitHub
parent f3aada9e1a
commit 01ea1854bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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