diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 368c5e21..84818e8e 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -818,7 +818,7 @@ namespace http { url.parse_query(params); std::string token = params["token"]; - if (!token.empty () || m_Tokens.find (std::stoi (token)) == m_Tokens.end ()) + if (token.empty () || m_Tokens.find (std::stoi (token)) == m_Tokens.end ()) { ShowError(s, "Invalid token"); return;