1
0
Fork 0
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:
Steffen Vogel 2021-01-08 19:29:20 +01:00
parent 39e497b376
commit 018579a893

View file

@ -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);