mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 21:51:51 +00:00
use base64 from boost::beast for basic authorization
This commit is contained in:
1 parent
c0f5798af9
commit
5312aba642
4 files changed
+6
-14
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user