Skip to content

Commit

Permalink
Merge pull request monero-project#8736
Browse files Browse the repository at this point in the history
ac9a897 Revert 'epee: when loading a JSON RPC payload, ensure params is an object' (moneromooo-monero)
  • Loading branch information
luigi1111 committed Feb 15, 2023
2 parents 3f696f1 + ac9a897 commit 3b765c5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions contrib/epee/include/net/http_server_handlers_map2.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@
epee::serialization::store_t_to_json(static_cast<epee::json_rpc::error_response&>(rsp), response_info.m_body); \
return true; \
} \
epee::serialization::storage_entry se; \
if(ps.get_value("params", se, nullptr) && se.type() != typeid(epee::serialization::section)) \
{ \
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 = -32701; \
static_cast<epee::json_rpc::error_response&>(rsp).error.message = "Params is not an object"; \
epee::serialization::store_t_to_json(static_cast<epee::json_rpc::error_response&>(rsp), response_info.m_body); \
return true; \
} \
epee::serialization::storage_entry id_; \
id_ = epee::serialization::storage_entry(std::string()); \
ps.get_value("id", id_, nullptr); \
Expand Down

0 comments on commit 3b765c5

Please sign in to comment.