mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-31 00:15:55 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user