diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-20 03:01:53 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-09-20 03:01:53 -0400 |
commit | 61ab5fd7b34194696bde26e81cf578c8563f1f2e (patch) | |
tree | cae7f3d9459cea051f3186e965eebd795542ab35 /discord | |
parent | b964054cc1046c666f2dba70a3cd5fb4c3d4157d (diff) | |
download | abaddon-portaudio-61ab5fd7b34194696bde26e81cf578c8563f1f2e.tar.gz abaddon-portaudio-61ab5fd7b34194696bde26e81cf578c8563f1f2e.zip |
fix up HTTPClient::MakeDELETE a bit
Diffstat (limited to 'discord')
-rw-r--r-- | discord/http.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/http.cpp b/discord/http.cpp index 696ab30..1e9b786 100644 --- a/discord/http.cpp +++ b/discord/http.cpp @@ -12,10 +12,9 @@ void HTTPClient::MakeDELETE(std::string path, std::function<void(cpr::Response r auto url = cpr::Url { m_api_base + path }; auto headers = cpr::Header { { "Authorization", m_authorization }, - { "Content-Type", "application/json" }, }; #ifdef USE_LOCAL_PROXY - m_futures.push_back(cpr::GetCallback( + m_futures.push_back(cpr::DeleteCallback( std::bind(&HTTPClient::OnResponse, this, std::placeholders::_1, cb), url, headers, cpr::Proxies { { "http", "127.0.0.1:8888" }, { "https", "127.0.0.1:8888" } }, |