From 8c11739a75f4c6c176ce57fe4eccd8c4404de27a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 12 Jul 2024 15:43:35 +0300 Subject: =?UTF-8?q?fixes=20#4527=20(Weather:=20=D0=BF=D0=B0=D0=B4=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=20=D0=B2=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=B5=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B8=20=D1=81=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=B0=D0=BC=D0=B8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/netlib_http.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3