summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/netlibhttp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/netlibhttp.cpp b/src/mir_app/src/netlibhttp.cpp
index 98e0d8a3ce..243f92e1a3 100644
--- a/src/mir_app/src/netlibhttp.cpp
+++ b/src/mir_app/src/netlibhttp.cpp
@@ -1001,7 +1001,7 @@ static int NetlibHttpRecvChunkHeader(NetlibConnection *nlc, bool first, DWORD fl
NETLIBHTTPREQUEST* NetlibHttpRecv(NetlibConnection *nlc, DWORD hflags, DWORD dflags, bool isConnect)
{
- int dataLen = 0, i, chunkhdr = 0;
+ int dataLen = -1, i, chunkhdr = 0;
bool chunked = false;
int cenc = 0, cenctype = 0, close = 0;