content length of http requests are assumed to be 0
This commit is contained in:
parent
d37fab9927
commit
0ba85d70e2
|
@ -113,6 +113,8 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
m_method = m_protocol;
|
m_method = m_protocol;
|
||||||
std::transform(m_method.begin(), m_method.end(), m_method.begin(), &to_lower);
|
std::transform(m_method.begin(), m_method.end(), m_method.begin(), &to_lower);
|
||||||
|
// the content length is assumed to be 0 for requests
|
||||||
|
m_content_length = 0;
|
||||||
m_protocol.clear();
|
m_protocol.clear();
|
||||||
line >> m_path >> m_protocol;
|
line >> m_path >> m_protocol;
|
||||||
m_status_code = 0;
|
m_status_code = 0;
|
||||||
|
|
Loading…
Reference in New Issue