diff --git a/external/3rd/library/webAPI/webAPI.cpp b/external/3rd/library/webAPI/webAPI.cpp index e2b8446c..0e6c3c67 100644 --- a/external/3rd/library/webAPI/webAPI.cpp +++ b/external/3rd/library/webAPI/webAPI.cpp @@ -10,7 +10,7 @@ std::string simplePost(std::string endpoint, std::string data, std::string slotN if (response.count("status") && response["status"].get() == "success") { - if (slotName && response.count(slotName)) + if (slotName != "" && response.count(slotName)) { output = response[slotName].get(); } @@ -27,7 +27,7 @@ std::string simplePost(std::string endpoint, std::string data, std::string slotN } else { - output = "Message not provided by authentication service."; + output = "Message not provided by remote."; } }