From 4f7a729d61648faa776071641fd8b1393b41f633 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Wed, 27 Apr 2016 22:27:18 +0000 Subject: [PATCH] this makes more sense --- external/3rd/library/webAPI/webAPI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."; } }