diff options
author | George Hazan <ghazan@miranda.im> | 2017-06-05 19:35:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-06-05 19:39:25 +0300 |
commit | 713dcc5d66c3647a106d71799ac11893ca13efcb (patch) | |
tree | b368a692e3f0d8b7b58cb66899805de1f7feb19d /src | |
parent | 566fa4ee9122cbb51b35c922fc0b0f8e609478d0 (diff) |
fixes #836 (Discord: extremely slow message sending (22 seconds))
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/netlibhttp.cpp | 3 |
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"))
|