diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-03 21:48:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-03 21:48:25 +0300 |
commit | 9c6dda528c8d53a3dd89f7afd57aece8d4951453 (patch) | |
tree | e376eb150f1b8d874c52b2272686f1d4ec216b7e /protocols/Discord/src/http.cpp | |
parent | 86c4ef4b99f87698b38c278a501d258f9245da84 (diff) |
first attempt to implement file transfers
Diffstat (limited to 'protocols/Discord/src/http.cpp')
-rw-r--r-- | protocols/Discord/src/http.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index a9136c5552..e9dc031e62 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -59,11 +59,11 @@ AsyncHttpRequest::AsyncHttpRequest(CDiscordProto *ppro, int iRequestType, LPCSTR } else flags |= NLHRF_NODUMPSEND; - AddHeader("Content-Type", "application/json"); if (pRoot != NULL) { ptrW text(json_write(pRoot)); pData = mir_utf8encodeW(text); dataLength = (int)mir_strlen(pData); + AddHeader("Content-Type", "application/json"); } requestType = iRequestType; |