so the result buffer/string wasn't being parsed by the json class because even using the "proper" ways of comparing the char * to "application/json" weren't working...ugh

This commit is contained in:
DarthArgus
2016-08-20 13:44:33 +00:00
parent 5f0e741a72
commit f7d5eeb160
4 changed files with 79 additions and 70 deletions
@@ -2863,7 +2863,7 @@ void CentralServer::sendPopulationUpdateToLoginServer()
void CentralServer::sendMetricsToWebAPI()
{
// create the object
webAPI api = webAPI::webAPI(std::string(ConfigCentralServer::getMetricsDataURL()));
webAPI api(std::string(ConfigCentralServer::getMetricsDataURL()));
// add our data
api.addJsonData<int>("totalPlayerCount", m_totalPlayerCount);
@@ -183,7 +183,7 @@ void ClientConnection::validateClient(const std::string & id, const std::string
if (!authURL.empty())
{
// create the object
webAPI api = webAPI::webAPI(authURL);
webAPI api(authURL);
// add our data
api.addJsonData<std::string>("user_name", id);