Fix beast::ci_equal

This commit is contained in:
Vinnie Falco
2015-04-17 10:44:36 -07:00
parent f3d76d5780
commit 47a5bf6aa5
2 changed files with 38 additions and 11 deletions

View File

@@ -210,8 +210,7 @@ OverlayImpl::onHandoff (std::unique_ptr <beast::asio::ssl_bundle>&& ssl_bundle,
if (std::find_if(types.begin(), types.end(),
[](std::string const& s)
{
return beast::ci_equal(s,
std::string("peer"));
return beast::ci_equal(s, "peer");
}) == types.end())
{
handoff.moved = false;