summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-06-05 19:35:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-06-05 19:39:25 +0300
commit713dcc5d66c3647a106d71799ac11893ca13efcb (patch)
treeb368a692e3f0d8b7b58cb66899805de1f7feb19d /src/mir_app
parent566fa4ee9122cbb51b35c922fc0b0f8e609478d0 (diff)
fixes #836 (Discord: extremely slow message sending (22 seconds))
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/netlibhttp.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/netlibhttp.cpp b/src/mir_app/src/netlibhttp.cpp
index 243f92e1a3..2827bf92c3 100644
--- a/src/mir_app/src/netlibhttp.cpp
+++ b/src/mir_app/src/netlibhttp.cpp
@@ -1015,6 +1015,9 @@ next:
goto next;
}
+ if (nlhrReply->resultCode == 204)
+ dataLen = 0;
+
for (i = 0; i < nlhrReply->headersCount; i++) {
NETLIBHTTPHEADER &p = nlhrReply->headers[i];
if (!mir_strcmpi(p.szName, "Content-Length"))