1
0
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:
Sadie Powell
2025-03-13 15:47:52 +00:00
parent b4d068b01a
commit 1fcd045aff
+2
View File
@@ -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");