aboutsummaryrefslogtreecommitdiff
path: root/src/server/bnetserver
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-05-13 11:41:54 +0200
committerShauren <shauren.trinity@gmail.com>2025-05-13 11:41:54 +0200
commit546d23264c8886cad0dc03f2df9c64e999c8573a (patch)
tree0f523886bedefc3df484d3e33ee028dbce4c05c1 /src/server/bnetserver
parent5ee93f177d8fa88cea5a3fbe103872325908fa87 (diff)
Core/Misc: Make string and string_view literal suffixes globally available
Diffstat (limited to 'src/server/bnetserver')
-rw-r--r--src/server/bnetserver/REST/LoginHttpSession.cpp1
-rw-r--r--src/server/bnetserver/REST/LoginRESTService.cpp4
2 files changed, 1 insertions, 4 deletions
diff --git a/src/server/bnetserver/REST/LoginHttpSession.cpp b/src/server/bnetserver/REST/LoginHttpSession.cpp
index d1c38d667d9..035dff6b243 100644
--- a/src/server/bnetserver/REST/LoginHttpSession.cpp
+++ b/src/server/bnetserver/REST/LoginHttpSession.cpp
@@ -30,7 +30,6 @@ namespace
{
std::shared_ptr<Trinity::Net::Http::SessionState> ObtainSessionState(Trinity::Net::Http::RequestContext& context, boost::asio::ip::address const& remoteAddress)
{
- using namespace std::string_literals;
std::shared_ptr<Trinity::Net::Http::SessionState> state;
auto cookieItr = context.request.find(boost::beast::http::field::cookie);
if (cookieItr != context.request.end())
diff --git a/src/server/bnetserver/REST/LoginRESTService.cpp b/src/server/bnetserver/REST/LoginRESTService.cpp
index 740265cfd4b..b75d8d93ba8 100644
--- a/src/server/bnetserver/REST/LoginRESTService.cpp
+++ b/src/server/bnetserver/REST/LoginRESTService.cpp
@@ -17,6 +17,7 @@
#include "LoginRESTService.h"
#include "Base64.h"
+#include "Common.h"
#include "Configuration/Config.h"
#include "CryptoHash.h"
#include "CryptoRandom.h"
@@ -42,7 +43,6 @@ bool LoginRESTService::StartNetwork(Trinity::Asio::IoContext& ioContext, std::st
if (!HttpService::StartNetwork(ioContext, bindIp, port, threadCount))
return false;
- using namespace std::string_view_literals;
using Trinity::Net::Http::RequestHandlerFlag;
RegisterHandler(boost::beast::http::verb::get, "/bnetserver/login/"sv, [this](std::shared_ptr<LoginHttpSession> session, HttpRequestContext& context)
@@ -149,8 +149,6 @@ std::string const& LoginRESTService::GetHostnameForClient(boost::asio::ip::addre
std::string LoginRESTService::ExtractAuthorization(HttpRequest const& request)
{
- using namespace std::string_view_literals;
-
std::string ticket;
auto itr = request.find(boost::beast::http::field::authorization);
if (itr == request.end())