summaryrefslogtreecommitdiff
path: root/discord/httpclient.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-02-18 14:38:40 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2021-02-18 14:38:40 -0500
commit3ab3119602c46e7c4802b2b8e017752738cd7031 (patch)
tree5b69db1fc8159212e988ffbcb74dde402dfc9023 /discord/httpclient.cpp
parenta721600016686cebb39bc359916a35f12a70766a (diff)
downloadabaddon-portaudio-3ab3119602c46e7c4802b2b8e017752738cd7031.tar.gz
abaddon-portaudio-3ab3119602c46e7c4802b2b8e017752738cd7031.zip
add menu item to add recipient to group dm
Diffstat (limited to 'discord/httpclient.cpp')
-rw-r--r--discord/httpclient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/httpclient.cpp b/discord/httpclient.cpp
index dc94566..fa43810 100644
--- a/discord/httpclient.cpp
+++ b/discord/httpclient.cpp
@@ -75,7 +75,8 @@ void HTTPClient::MakePUT(const std::string &path, const std::string &payload, st
m_futures.push_back(std::async(std::launch::async, [this, path, cb, payload] {
http::request req(http::REQUEST_PUT, m_api_base + path);
req.set_header("Authorization", m_authorization);
- req.set_header("Content-Type", "application/json");
+ if (payload != "")
+ req.set_header("Content-Type", "application/json");
req.set_user_agent(m_agent != "" ? m_agent : "Abaddon");
req.set_body(payload);
#ifdef USE_LOCAL_PROXY