fix #I17OXT
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ public class AuthUtils {
|
||||
Enumeration<String> headers = request.getHeaders(CommonConstant.TOKEN_HEADER);
|
||||
while (headers.hasMoreElements()) {
|
||||
String value = headers.nextElement();
|
||||
if ((value.toLowerCase().startsWith(OAuth2AccessToken.BEARER_TYPE))) {
|
||||
if ((value.startsWith(OAuth2AccessToken.BEARER_TYPE))) {
|
||||
String authHeaderValue = value.substring(OAuth2AccessToken.BEARER_TYPE.length()).trim();
|
||||
int commaIndex = authHeaderValue.indexOf(',');
|
||||
if (commaIndex > 0) {
|
||||
|
||||
Reference in New Issue
Block a user