mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Fix the jsonrpc not having a root element one is not specified.
This commit is contained in:
@@ -190,6 +190,8 @@ public:
|
||||
auto *result = SerializeElement(doc, request.GetRoot().value());
|
||||
yyjson_mut_obj_add_val(doc, root, "result", result);
|
||||
}
|
||||
else
|
||||
yyjson_mut_obj_add_null(doc, root, "result");
|
||||
|
||||
yyjson_mut_obj_add_str(doc, root, "jsonrpc", "2.0");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user