use base64 from boost::beast for basic authorization

This commit is contained in:
PobreGato committed 2026-08-16 03:56:58 +03:00
1 parent c0f5798af9
commit 5312aba642
4 files changed
+6 -14

No files matched your search

+1 -1
View File
@@ -1275,7 +1275,7 @@ namespace http {
auto provided = req.GetHeader ("Authorization");
if (provided.length () > 0)
{
std::string expected = "Basic " + i2p::data::ToBase64Standard (user + ":" + pass);
std::string expected = i2p::http::CreateBasicAuthorizationString (user, pass);
if (expected == provided) return true;
}