diff --git a/src/main/java/com/dispose/pojo/dto/protocol/base/ProtocolReqDTO.java b/src/main/java/com/dispose/pojo/dto/protocol/base/ProtocolReqDTO.java index 76c26ee7..c9b02186 100644 --- a/src/main/java/com/dispose/pojo/dto/protocol/base/ProtocolReqDTO.java +++ b/src/main/java/com/dispose/pojo/dto/protocol/base/ProtocolReqDTO.java @@ -34,7 +34,7 @@ public class ProtocolReqDTO extends BaseProtocolDTO { try { 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); return ""; }