only accept gzip encoding for bottled http requests
This commit is contained in:
parent
c3e49e4ca2
commit
96a771ef8b
|
@ -109,9 +109,11 @@ void http_connection::get(std::string const& url, time_duration timeout, int pri
|
|||
if (!user_agent.empty())
|
||||
headers << "User-Agent: " << user_agent << "\r\n";
|
||||
|
||||
if (m_bottled)
|
||||
headers << "Accept-Encoding: gzip\r\n";
|
||||
|
||||
headers <<
|
||||
"Connection: close\r\n"
|
||||
"Accept-Encoding: gzip\r\n"
|
||||
"\r\n";
|
||||
|
||||
sendbuffer = headers.str();
|
||||
|
|
Loading…
Reference in New Issue