header authorization

This commit is contained in:
MaxKey
2021-03-23 19:11:54 +08:00
parent d5d47f127b
commit c1c9bb5e87
12 changed files with 122 additions and 76 deletions

View File

@@ -64,7 +64,7 @@ public class AuthorizationHeaderUtils {
}
public static boolean isBearer(String bearer) {
if (bearer.startsWith(AuthorizationHeaderCredential.Credential.BEARER)) {
if (bearer.toLowerCase().startsWith(AuthorizationHeaderCredential.Credential.BEARER.toLowerCase())) {
return true;
} else {
return false;