diff --git a/src/net/http/proxy_client_socket.cc b/src/net/http/proxy_client_socket.cc index fe2397825e..d0611410a2 100644 --- a/src/net/http/proxy_client_socket.cc +++ b/src/net/http/proxy_client_socket.cc @@ -7,6 +7,7 @@ #include #include "base/metrics/histogram_macros.h" +#include "base/rand_util.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" #include "net/base/host_port_pair.h" @@ -40,6 +41,8 @@ void ProxyClientSocket::BuildTunnelRequest( request_headers->SetHeader(HttpRequestHeaders::kUserAgent, user_agent); request_headers->MergeFrom(auth_headers); + request_headers->SetHeader("Padding", + std::string(base::RandInt(16, 32), '.')); } // static