Replaces the usage of boost::string_view with std::string_view (#4509)

This commit is contained in:
Chenna Keshava B S
2024-06-17 13:41:03 -07:00
committed by GitHub
parent 06733ec21a
commit 825864032a
24 changed files with 132 additions and 91 deletions

View File

@@ -574,7 +574,7 @@ private:
if (ec)
break;
std::string path = req.target();
std::string_view const path = req.target();
res.insert("Server", "TrustedPublisherServer");
res.version(req.version());
res.keep_alive(req.keep_alive());
@@ -677,7 +677,9 @@ private:
// unknown request
res.result(boost::beast::http::status::not_found);
res.insert("Content-Type", "text/html");
res.body() = "The file '" + path + "' was not found";
res.body() = "The file '" + std::string(path) +
"' was not "
"found";
}
if (prepare)