mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24:26 +01:00
Logical bugfix
This commit is contained in:
parent
1d6719269b
commit
364a1f36fc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user