Skip to content

Commit

Permalink
feature:monitor brearer token api, ignore letter case to comparison (#…
Browse files Browse the repository at this point in the history
…1122)

Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
  • Loading branch information
littlezhongzer and zhongcheng authored Jul 22, 2023
1 parent 09a005c commit 8fa4180
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public HttpUriRequest createHttpRequest(HttpProtocol httpProtocol) {
// 判断是否使用Bearer Token认证
if (httpProtocol.getAuthorization() != null) {
HttpProtocol.Authorization authorization = httpProtocol.getAuthorization();
if (DispatchConstants.BEARER_TOKEN.equals(authorization.getType())) {
if (DispatchConstants.BEARER_TOKEN.equalsIgnoreCase(authorization.getType())) {
// 若使用 将token放入到header里面
String value = DispatchConstants.BEARER + " " + authorization.getBearerTokenToken();
requestBuilder.addHeader(HttpHeaders.AUTHORIZATION, value);
Expand Down

0 comments on commit 8fa4180

Please sign in to comment.