summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-12 15:43:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-12 15:43:40 +0300
commit8c11739a75f4c6c176ce57fe4eccd8c4404de27a (patch)
tree7f72354074dc8935c070b0756b9680b1d7803160 /src/mir_app
parentcb2b819f833d8e924b27031f6922e920f4231bd7 (diff)
fixes #4527 (Weather: падение при вводе строки с пробелами)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/netlib_http.cpp7
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) {