diff --git a/libi2pd_client/TorrentsRPC.cpp b/libi2pd_client/TorrentsRPC.cpp index 5180faa3..b4d822a7 100644 --- a/libi2pd_client/TorrentsRPC.cpp +++ b/libi2pd_client/TorrentsRPC.cpp @@ -208,6 +208,7 @@ namespace torrents std::string JSONRPCHandler::HandleTorrentGet (boost::json::object&& jsonRequest) { + auto arguments = jsonRequest.at ("arguments").as_object (); std::vector torrentIds; bool torrentsRequested = arguments.contains ("ids"); @@ -225,6 +226,7 @@ namespace torrents auto fields = arguments.at ("fields").as_array (); boost::json::object response; + response["jsonrpc"] = "2.0"; boost::json::array torrents; for (auto id: torrentIds) {