From 3ab3119602c46e7c4802b2b8e017752738cd7031 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 18 Feb 2021 14:38:40 -0500 Subject: add menu item to add recipient to group dm --- discord/httpclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'discord/httpclient.cpp') 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 -- cgit v1.2.3