mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 04:44:25 -04:00
Fix a couple compliler warnings in JSON API
This commit is contained in:
parent
3820e324b0
commit
98b9152204
1 changed files with 4 additions and 3 deletions
|
@ -280,7 +280,7 @@ JsonApiServer::JsonApiServer(uint16_t port, const std::string& bindAddress,
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
registerHandler("/rsEvents/registerEventsHandler",
|
registerHandler("/rsEvents/registerEventsHandler",
|
||||||
[this](const std::shared_ptr<rb::Session> session)
|
[](const std::shared_ptr<rb::Session> session)
|
||||||
{
|
{
|
||||||
const std::multimap<std::string, std::string> headers
|
const std::multimap<std::string, std::string> headers
|
||||||
{
|
{
|
||||||
|
@ -289,8 +289,9 @@ JsonApiServer::JsonApiServer(uint16_t port, const std::string& bindAddress,
|
||||||
};
|
};
|
||||||
session->yield(rb::OK, headers);
|
session->yield(rb::OK, headers);
|
||||||
|
|
||||||
size_t reqSize = session->get_request()->get_header("Content-Length", 0);
|
size_t reqSize = static_cast<size_t>(
|
||||||
session->fetch( reqSize, [this](
|
session->get_request()->get_header("Content-Length", 0) );
|
||||||
|
session->fetch( reqSize, [](
|
||||||
const std::shared_ptr<rb::Session> session,
|
const std::shared_ptr<rb::Session> session,
|
||||||
const rb::Bytes& body )
|
const rb::Bytes& body )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue