fixed bug when contacting an HTTP/1.0 web server that used gzip compression

This commit is contained in:
Arvid Norberg 2008-10-10 04:19:56 +00:00
parent 13554cbd3b
commit e109b64b27
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ void http_connection::callback(error_code const& e, char const* data, int size)
if (!m_bottled || !m_called)
{
std::vector<char> buf;
if (m_bottled && m_parser.finished())
if (m_bottled && m_parser.header_finished())
{
std::string const& encoding = m_parser.header("content-encoding");
if (encoding == "gzip" || encoding == "x-gzip")