aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-25 23:00:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-07-25 23:00:19 +0100
commite7c0fcd8f3f80f651c09935d05f2ff36a1870646 (patch)
tree4c61ba2b50f4a342a235b1b575ade9889c6abd1e /contrib
parentMerge pull request #4088 (diff)
downloadmonero-e7c0fcd8f3f80f651c09935d05f2ff36a1870646.tar.xz
epee: set jsonrpc to "2.0" in parse error return data
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/net/http_server_handlers_map2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/net/http_server_handlers_map2.h b/contrib/epee/include/net/http_server_handlers_map2.h
index 429e3e1af..00a867d3e 100644
--- a/contrib/epee/include/net/http_server_handlers_map2.h
+++ b/contrib/epee/include/net/http_server_handlers_map2.h
@@ -122,6 +122,7 @@
if(!ps.load_from_json(query_info.m_body)) \
{ \
boost::value_initialized<epee::json_rpc::error_response> rsp; \
+ static_cast<epee::json_rpc::error_response&>(rsp).jsonrpc = "2.0"; \
static_cast<epee::json_rpc::error_response&>(rsp).error.code = -32700; \
static_cast<epee::json_rpc::error_response&>(rsp).error.message = "Parse error"; \
epee::serialization::store_t_to_json(static_cast<epee::json_rpc::error_response&>(rsp), response_info.m_body); \