From 5a2f89d5b38a5aa868e8fba53520a195244cd878 Mon Sep 17 00:00:00 2001 From: HuangXin Date: Wed, 1 Sep 2021 09:58:03 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BF=AE=E6=AD=A3=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dispose/pojo/dto/protocol/base/ProtocolReqDTO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; }