fix to http_parser when used to parse requests instead of responses

This commit is contained in:
Arvid Norberg 2009-03-14 23:22:37 +00:00
parent e2ac32e7cf
commit fc8a59a390
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ namespace libtorrent
// the header is finished and the body
// starts.
m_state = read_body;
// if this is a request (not a response)
// we're done once we reach the end of the headers
if (!m_method.empty()) m_finished = true;
m_body_start_pos = m_recv_pos;
break;
}