diff options
Diffstat (limited to 'discord/http.cpp')
-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" } }, |