forked from premiere/premiere-libtorrent
fix to http_parser when used to parse requests instead of responses
This commit is contained in:
parent
e2ac32e7cf
commit
fc8a59a390
|
@ -147,6 +147,9 @@ namespace libtorrent
|
||||||
// the header is finished and the body
|
// the header is finished and the body
|
||||||
// starts.
|
// starts.
|
||||||
m_state = read_body;
|
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;
|
m_body_start_pos = m_recv_pos;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue