we only use this var once, no reason to keep it...

This commit is contained in:
DarthArgus
2016-05-05 14:34:47 +00:00
parent 8c0d9beb5d
commit ade6e1f1d0
@@ -188,12 +188,9 @@ void ClientConnection::validateClient(const std::string & id, const std::string
if (!authURL.empty())
{
std::ostringstream postBuf;
std::string postData;
postBuf << "user_name=" << id << "&user_password=" << key << "&stationID=" << suid << "&ip=" << getRemoteAddress();
postData = std::string(postBuf.str());
std::string response = webAPI::simplePost(authURL, postData, "");
std::string response = webAPI::simplePost(authURL, std::string(postBuf.str()), "");
if (!response.empty())
{