Commit 018579a8 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

api: fix status request

parent 39e497b3
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment