Remove colon from bearer API key

This commit is contained in:
Akkadius 2019-08-04 03:06:09 -05:00
parent 4498819fad
commit 63e1599e9b

View File

@ -202,7 +202,7 @@ namespace LoginserverWebserver {
auto header_value = header.second;
if (header_key == "Authorization") {
authorization_key = header.second;
find_replace(authorization_key, "Bearer: ", "");
find_replace(authorization_key, "Bearer ", "");
if (LoginserverWebserver::TokenManager::TokenExists(authorization_key)) {
user_token = server.token_manager->GetToken(authorization_key);
}