mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
refactor: starts/ends_with changes for clang-tidy 20
This commit is contained in:
@@ -134,7 +134,7 @@ static bool multiUserAuthorized(std::string strUserPass)
|
||||
|
||||
static bool RPCAuthorized(const std::string& strAuth, std::string& strAuthUsernameOut)
|
||||
{
|
||||
if (strAuth.substr(0, 6) != "Basic ")
|
||||
if (!strAuth.starts_with("Basic "))
|
||||
return false;
|
||||
std::string_view strUserPass64 = TrimStringView(std::string_view{strAuth}.substr(6));
|
||||
auto userpass_data = DecodeBase64(strUserPass64);
|
||||
|
||||
Reference in New Issue
Block a user