1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 02:14:26 +01:00

Logical bugfix

This commit is contained in:
Ralf Ramsauer 2015-09-23 16:12:20 +02:00
parent 1d6719269b
commit 364a1f36fc

View File

@ -65,7 +65,7 @@ static void session(tcp::socket &&sock)
Response response;
std::string command;
if (reader.parse(request, root, false))
if (!reader.parse(request, root, false))
{
response.message = "Request is no valid JSON";
response.code = Response::Code::JsonError;