Remove unused includes, fix warnings

This commit is contained in:
badaix 2024-12-19 23:37:44 +01:00
parent a79b3e6599
commit 06f1c7d32f
4 changed files with 7 additions and 7 deletions

View file

@ -449,11 +449,10 @@ void ControlSessionHttp::on_read(beast::error_code ec, std::size_t bytes_transfe
return;
}
std::string_view authheader = req_[beast::http::field::authorization];
auto authheader = req_[beast::http::field::authorization];
if (!authheader.empty())
{
auto ec = authinfo.authenticate(std::string(authheader));
auto ec = authinfo.authenticate(std::string{authheader});
if (ec)
{
LOG(ERROR, LOG_TAG) << "Authentication failed: " << ec.detailed_message() << "\n";