REM:
1. 修正重复判断逻辑
This commit is contained in:
HuangXin 2021-09-01 09:58:03 +08:00
parent 554ebdffb0
commit 5a2f89d5b3
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class ProtocolReqDTO<T> extends BaseProtocolDTO<T> {
try { try {
String authString = Objects.requireNonNull(headers.get("Authorization")).get(0); String authString = Objects.requireNonNull(headers.get("Authorization")).get(0);
if (authString.length() == 0 || !authString.startsWith(ConstValue.STRING_HTTP_AUTH_HEAD)) { if (!authString.startsWith(ConstValue.STRING_HTTP_AUTH_HEAD)) {
log.error("Input Authorization header error: [{}]", authString); log.error("Input Authorization header error: [{}]", authString);
return ""; return "";
} }