fixed assert in http_connection

This commit is contained in:
Arvid Norberg 2009-09-18 19:55:41 +00:00
parent b5b96a74fa
commit d16a5d855e
1 changed files with 1 additions and 1 deletions

View File

@ -493,8 +493,8 @@ void http_connection::callback(error_code const& e, char const* data, int size)
close();
return;
}
data = &buf[0];
size = int(buf.size());
data = size == 0 ? 0 : &buf[0];
}
}
m_called = true;