aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/http_server_handlers_map2.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-01-16 19:04:22 +0200
committerRiccardo Spagni <ric@spagni.net>2019-01-16 19:04:22 +0200
commit846362842c9893cdbbea1dd1f00931c50bb2df5e (patch)
treec7e91557c2349a3cbeb23053950de96185428595 /contrib/epee/include/net/http_server_handlers_map2.h
parentMerge pull request #4973 (diff)
parentepee: better network buffer data structure (diff)
downloadmonero-846362842c9893cdbbea1dd1f00931c50bb2df5e.tar.xz
Merge pull request #4976
85665003 epee: better network buffer data structure (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/net/http_server_handlers_map2.h')
-rw-r--r--contrib/epee/include/net/http_server_handlers_map2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/http_server_handlers_map2.h b/contrib/epee/include/net/http_server_handlers_map2.h
index 997c801d1..64d035df9 100644
--- a/contrib/epee/include/net/http_server_handlers_map2.h
+++ b/contrib/epee/include/net/http_server_handlers_map2.h
@@ -92,7 +92,7 @@
handled = true; \
uint64_t ticks = misc_utils::get_tick_count(); \
boost::value_initialized<command_type::request> req; \
- bool parse_res = epee::serialization::load_t_from_binary(static_cast<command_type::request&>(req), query_info.m_body); \
+ bool parse_res = epee::serialization::load_t_from_binary(static_cast<command_type::request&>(req), epee::strspan<uint8_t>(query_info.m_body)); \
CHECK_AND_ASSERT_MES(parse_res, false, "Failed to parse bin body data, body size=" << query_info.m_body.size()); \
uint64_t ticks1 = misc_utils::get_tick_count(); \
boost::value_initialized<command_type::response> resp;\