fix to http_connection

This commit is contained in:
Arvid Norberg 2007-10-03 22:23:18 +00:00
parent c9267431b9
commit ab70e4e9c1
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ void http_connection::on_read(asio::error_code const& e
m_called = true;
char const* data = 0;
std::size_t size = 0;
if (m_bottled)
if (m_bottled && m_parser.header_finished())
{
data = m_parser.get_body().begin;
size = m_parser.get_body().left();