diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/netlib_http.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mir_app/src/netlib_http.cpp b/src/mir_app/src/netlib_http.cpp index b34346f768..c05b02488f 100644 --- a/src/mir_app/src/netlib_http.cpp +++ b/src/mir_app/src/netlib_http.cpp @@ -941,11 +941,10 @@ next: }
if (nlhrReply->resultCode >= 200 && (dataLen > 0 || (!isConnect && dataLen < 0))) {
- if (chunked) {
+ if (chunked)
dataLen = NetlibHttpRecvChunkHeader(nlc, true, dflags | (cenctype ? MSG_NODUMP : 0));
- if (dataLen == SOCKET_ERROR)
- return nullptr;
- }
+ if (dataLen == SOCKET_ERROR)
+ return nullptr;
ptrA tmpBuf((char *)mir_alloc(65536));
while (dataLen != 0) {
|