From 5dfefd20caf4adca415395d435b84d8d2ad254d9 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Mon, 3 Feb 2020 18:19:54 +0100 Subject: [PATCH] fixed bug in rpc map macro --- contrib/epee/include/net/http_server_handlers_map2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/epee/include/net/http_server_handlers_map2.h b/contrib/epee/include/net/http_server_handlers_map2.h index ae222593..3b8a5948 100644 --- a/contrib/epee/include/net/http_server_handlers_map2.h +++ b/contrib/epee/include/net/http_server_handlers_map2.h @@ -343,7 +343,7 @@ struct json_command_type_t epee::json_rpc::error_response rsp; \ rsp.id = id_; \ rsp.jsonrpc = "2.0"; \ - rsp.method = req.method; \ + rsp.method = callback_name; \ rsp.error.code = -32601; \ rsp.error.message = "Method not found"; \ epee::serialization::store_t_to_json(static_cast(rsp), response_info.m_body); \