content length of http requests are assumed to be 0

This commit is contained in:
Arvid Norberg 2009-08-18 18:49:45 +00:00
parent d37fab9927
commit 0ba85d70e2
1 changed files with 2 additions and 0 deletions

View File

@ -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;