Browse Source

fixup! read Content-Length from http header

MSVC++ complains on ssize_t
pull/307/head
Mikhail Titov 9 years ago
parent
commit
b2a6c1bc68
  1. 2
      I2PControl.cpp

2
I2PControl.cpp

@ -201,7 +201,7 @@ namespace client @@ -201,7 +201,7 @@ namespace client
LogPrint (eLogError, "Malformed I2PControl request. HTTP header expected");
return; // TODO:
}
ssize_t rem = contentLength + ss.tellg () - bytes_transferred; // more bytes to read
std::streamoff rem = contentLength + ss.tellg () - bytes_transferred; // more bytes to read
if (rem > 0)
{
bytes_transferred = boost::asio::read (*socket, boost::asio::buffer (buf->data (), rem));

Loading…
Cancel
Save