replace usage of boost::iequals with utility::string_equals.

This commit is contained in:
Luca Schlecker 2022-06-06 16:21:03 +02:00 committed by Farook Al-Sammarraie
parent f3dba60efd
commit 2f87414769
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
#include <boost/algorithm/string/predicate.hpp>
#include <boost/functional/hash.hpp>
#include <unordered_map>
#include "crow/utility.h"
namespace crow
{
@ -28,7 +29,7 @@ namespace crow
{
bool operator()(const std::string& l, const std::string& r) const
{
return boost::iequals(l, r);
return utility::string_equals(l, r);
}
};

View File

@ -5,6 +5,7 @@
#include "crow/socket_adaptors.h"
#include "crow/http_request.h"
#include "crow/TinySHA1.hpp"
#include "crow/utility.h"
namespace crow
{
@ -86,7 +87,7 @@ namespace crow
error_handler_(std::move(error_handler)),
accept_handler_(std::move(accept_handler))
{
if (!boost::iequals(req.get_header_value("upgrade"), "websocket"))
if (!utility::string_equals(req.get_header_value("upgrade"), "websocket"))
{
adaptor.close();
handler_->remove_websocket(this);