This commit is contained in:
Jonas Zeunert
2019-09-25 20:12:09 +02:00
4 changed files with 99 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ void OutputRequestHandler::handleRequest(HTTPServerRequest &request,
try
{
boost::optional<Poco::JSON::Object> json_response = parseRequest(item_type, item_name, action, score);
json_response->stringify(std::cerr);
if(json_response)
{
std::ostream& ostr = response.send();