only accept gzip encoding for bottled http requests

This commit is contained in:
Arvid Norberg 2008-12-29 07:31:33 +00:00
parent c3e49e4ca2
commit 96a771ef8b
1 changed files with 3 additions and 1 deletions

View File

@ -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();