fix up HTTPClient::MakeDELETE a bit

This commit is contained in:
ouwou
2020-09-20 03:01:53 -04:00
parent b964054cc1
commit 61ab5fd7b3

View File

@@ -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" } },