diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-08-15 17:42:09 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-08-15 17:42:09 -0500 |
commit | 0415863747116450c525b83082da500e39b17f1e (patch) | |
tree | 7f26113fd83af7201f66b78a0dca535cf53b5aed /contrib/epee | |
parent | Merge pull request #4174 (diff) | |
parent | epee: set jsonrpc to "2.0" in parse error return data (diff) | |
download | monero-0415863747116450c525b83082da500e39b17f1e.tar.xz |
Merge pull request #4177
e7c0fcd epee: set jsonrpc to '2.0' in parse error return data (moneromooo-monero)
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/include/net/http_server_handlers_map2.h | 1 |
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); \ |