1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 18:34:25 +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; Response response;
std::string command; std::string command;
if (reader.parse(request, root, false)) if (!reader.parse(request, root, false))
{ {
response.message = "Request is no valid JSON"; response.message = "Request is no valid JSON";
response.code = Response::Code::JsonError; response.code = Response::Code::JsonError;