mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-18 23:36:39 +01:00
fixup! read Content-Length from http header
MSVC++ complains on ssize_t
This commit is contained in:
parent
76549d0a4a
commit
b2a6c1bc68
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ namespace client
|
||||||
LogPrint (eLogError, "Malformed I2PControl request. HTTP header expected");
|
LogPrint (eLogError, "Malformed I2PControl request. HTTP header expected");
|
||||||
return; // TODO:
|
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)
|
if (rem > 0)
|
||||||
{
|
{
|
||||||
bytes_transferred = boost::asio::read (*socket, boost::asio::buffer (buf->data (), rem));
|
bytes_transferred = boost::asio::read (*socket, boost::asio::buffer (buf->data (), rem));
|
||||||
|
|
Loading…
Add table
Reference in a new issue