diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-24 19:00:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-24 19:00:07 +0300 |
commit | 8040f360a7390137a24f78870da4513fb6c12d99 (patch) | |
tree | 8b1ad3709873c6f607ff941b88d1f9dac7ce70f8 /protocols | |
parent | 53c26b123b267420707d9d337c4a2d3f32c8be81 (diff) |
fixes #2182 (Discord: cannot leave guild)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/http.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index cf9594bcac..1b8cbeae7d 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -61,9 +61,9 @@ AsyncHttpRequest::AsyncHttpRequest(CDiscordProto *ppro, int iRequestType, LPCSTR ptrW text(json_write(pRoot)); pData = mir_utf8encodeW(text); dataLength = (int)mir_strlen(pData); - } - AddHeader("Content-Type", "application/json"); + AddHeader("Content-Type", "application/json"); + } m_pFunc = pFunc; requestType = iRequestType; |