Update to use latest beast

This commit is contained in:
Miguel Portilla
2017-07-10 19:09:58 -04:00
parent 61316c7f95
commit 95f107d487
29 changed files with 326 additions and 244 deletions

View File

@@ -35,7 +35,7 @@
#include <ripple/protocol/types.h>
#include <ripple/rpc/ServerHandler.h>
#include <ripple/beast/core/LexicalCast.h>
#include <beast/core/detail/ci_char_traits.hpp>
#include <beast/core/string.hpp>
#include <boost/asio/streambuf.hpp>
#include <boost/regex.hpp>
#include <array>
@@ -423,9 +423,9 @@ private:
// This may look reversed, but it's intentional: jss::vetoed
// determines whether an amendment is vetoed - so "reject" means
// that jss::vetoed is true.
if (beast::detail::ci_equal(action, "reject"))
if (beast::detail::iequals(action, "reject"))
jvRequest[jss::vetoed] = Json::Value (true);
else if (beast::detail::ci_equal(action, "accept"))
else if (beast::detail::iequals(action, "accept"))
jvRequest[jss::vetoed] = Json::Value (false);
else
return rpcError (rpcINVALID_PARAMS);