did i say simpler? i'm not sure if this is more or less simple...but it is secure and operates how we need... @apathy audit please?

This commit is contained in:
DarthArgus
2016-08-05 01:09:25 +00:00
parent 46e985f72a
commit a9fa196e5f
4 changed files with 27 additions and 14 deletions
@@ -2871,8 +2871,8 @@ void CentralServer::sendMetricsToWebAPI(std::string updateURL)
postBuf << "totalPlayerCount=" << m_totalPlayerCount << "&totalGameServers=" << m_gameServers.size() - 1 << "&totalPlanetServers=" << m_planetServers.size() << "&isPublic=" << getIsClusterPublic() << "&isLocked=" << getIsClusterLocked() << "&isSecret=" << getIsClusterSecret() << "&preloadFinished=" << getClusterStartupTime() << "&databasebacklogged=" << isDatabaseBacklogged() << "&totalTutorialSceneCount=" << m_totalTutorialSceneCount << "&totalFalconSceneCount=" << m_totalFalconSceneCount;
std::string response = webAPI::simplePost(updateURL, std::string(postBuf.str()), "status", "message");
WARNING((response != "success"), ("Error sending stats: %s", response.c_str()));
webAPI::statusMessage response = webAPI::simplePost(updateURL, std::string(postBuf.str()), "status", "message", "status", "success");
WARNING(response.status, ("Error sending stats: %s", response.message.c_str()));
}
//-----------------------------------------------------------------------