From e5b5156a916fbe3b49218a97b1a1e232b96cf5ac Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Mon, 17 Oct 2016 20:37:18 -0500 Subject: [PATCH 1/5] fix url --- external/3rd/library/webAPI/webAPIHeartbeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/3rd/library/webAPI/webAPIHeartbeat.cpp b/external/3rd/library/webAPI/webAPIHeartbeat.cpp index f5720157..20e94f73 100644 --- a/external/3rd/library/webAPI/webAPIHeartbeat.cpp +++ b/external/3rd/library/webAPI/webAPIHeartbeat.cpp @@ -7,7 +7,7 @@ using namespace StellaBellum; webAPIHeartbeat::webAPIHeartbeat() { - webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metriccontroller/shoulderTap?type=server").decrypt())); + webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap?type=server").decrypt())); bool result = api.submit(); if (result) { From c36b91e0d0bbfedeab8828414fb1c04c5580871f Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Mon, 17 Oct 2016 20:37:18 -0500 Subject: [PATCH 2/5] fix url --- external/3rd/library/webAPI/webAPIHeartbeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/3rd/library/webAPI/webAPIHeartbeat.cpp b/external/3rd/library/webAPI/webAPIHeartbeat.cpp index f5720157..20e94f73 100644 --- a/external/3rd/library/webAPI/webAPIHeartbeat.cpp +++ b/external/3rd/library/webAPI/webAPIHeartbeat.cpp @@ -7,7 +7,7 @@ using namespace StellaBellum; webAPIHeartbeat::webAPIHeartbeat() { - webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metriccontroller/shoulderTap?type=server").decrypt())); + webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap?type=server").decrypt())); bool result = api.submit(); if (result) { From a0a1f8eb319a970e15fbd4bf1c5bab170eeafbe2 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Mon, 17 Oct 2016 20:51:13 -0500 Subject: [PATCH 3/5] in theory, this isn't a necessary check as the api would complain if something is missing --- external/3rd/library/webAPI/webAPI.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/external/3rd/library/webAPI/webAPI.cpp b/external/3rd/library/webAPI/webAPI.cpp index 9285cfae..57741ff8 100644 --- a/external/3rd/library/webAPI/webAPI.cpp +++ b/external/3rd/library/webAPI/webAPI.cpp @@ -64,8 +64,6 @@ bool webAPI::submit(const int &reqType, const int &getPost, const int &respType) // clear our the object for next time this->requestData.clear(); - } else { - return false; } } From 46a578acb20f3db8266e8486883810f4cde02c28 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Mon, 17 Oct 2016 21:02:17 -0500 Subject: [PATCH 4/5] send a special user agent --- external/3rd/library/webAPI/webAPIHeartbeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/3rd/library/webAPI/webAPIHeartbeat.cpp b/external/3rd/library/webAPI/webAPIHeartbeat.cpp index 20e94f73..91ca04cb 100644 --- a/external/3rd/library/webAPI/webAPIHeartbeat.cpp +++ b/external/3rd/library/webAPI/webAPIHeartbeat.cpp @@ -7,7 +7,7 @@ using namespace StellaBellum; webAPIHeartbeat::webAPIHeartbeat() { - webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap?type=server").decrypt())); + webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap?type=server").decrypt()), std::string(vxENCRYPT("StellaBellum WebAPI Metrics Sender")).decrypt()); bool result = api.submit(); if (result) { From 1289a17e87d9adc1b4e5b68f611aa7353c15cd0c Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Tue, 18 Oct 2016 02:09:53 +0000 Subject: [PATCH 5/5] typo --- external/3rd/library/webAPI/webAPIHeartbeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/3rd/library/webAPI/webAPIHeartbeat.cpp b/external/3rd/library/webAPI/webAPIHeartbeat.cpp index 91ca04cb..367c7cac 100644 --- a/external/3rd/library/webAPI/webAPIHeartbeat.cpp +++ b/external/3rd/library/webAPI/webAPIHeartbeat.cpp @@ -7,7 +7,7 @@ using namespace StellaBellum; webAPIHeartbeat::webAPIHeartbeat() { - webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap?type=server").decrypt()), std::string(vxENCRYPT("StellaBellum WebAPI Metrics Sender")).decrypt()); + webAPI api = webAPI::webAPI(std::string(vxENCRYPT("https://login.stellabellum.net/metric/shoulderTap?type=server").decrypt()), std::string(vxENCRYPT("StellaBellum WebAPI Metrics Sender").decrypt())); bool result = api.submit(); if (result) {