mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
api: fix status request
This commit is contained in:
parent
39e497b376
commit
018579a893
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ protected:
|
|||
char buf[4096];
|
||||
|
||||
ret = lws_json_dump_context(ctx, buf, sizeof(buf), 0);
|
||||
if (ret)
|
||||
if (ret <= 0)
|
||||
throw Error(HTTP_STATUS_INTERNAL_SERVER_ERROR, "Failed to dump LWS context");
|
||||
|
||||
return json_loads(buf, 0, nullptr);
|
||||
|
|
Loading…
Add table
Reference in a new issue