aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-02-15 10:45:53 -0500
committerluigi1111 <luigi1111w@gmail.com>2023-02-15 10:45:53 -0500
commit3b765c509f717555177508b67f5b776d7e7f2825 (patch)
tree5e63f6d471c17401733797407857dbb5b93c3942 /contrib
parentMerge pull request #8720 (diff)
parentRevert "epee: when loading a JSON RPC payload, ensure params is an object" (diff)
downloadmonero-3b765c509f717555177508b67f5b776d7e7f2825.tar.xz
Merge pull request #8736
ac9a897 Revert 'epee: when loading a JSON RPC payload, ensure params is an object' (moneromooo-monero)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/net/http_server_handlers_map2.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/contrib/epee/include/net/http_server_handlers_map2.h b/contrib/epee/include/net/http_server_handlers_map2.h
index 00967b2da..848b8ffc4 100644
--- a/contrib/epee/include/net/http_server_handlers_map2.h
+++ b/contrib/epee/include/net/http_server_handlers_map2.h
@@ -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); \