diff options
-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; |