From 51f9504c556c7a083c59d7b535e19a81a227c4ae Mon Sep 17 00:00:00 2001 From: "Sky.Grain" Date: Thu, 21 Nov 2019 19:44:18 +0800 Subject: [PATCH] Update XxlJobRemotingUtil.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nginx 会默认过滤“_”符号,导致Token失效,无法从 Request header 中 正常获取到Token值。 --- .../src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java b/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java index 258637dc..3fde3aeb 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/util/XxlJobRemotingUtil.java @@ -17,7 +17,7 @@ import java.util.Map; */ public class XxlJobRemotingUtil { private static Logger logger = LoggerFactory.getLogger(XxlJobRemotingUtil.class); - public static String XXL_RPC_ACCESS_TOKEN = "XXL_RPC_ACCESS_TOKEN"; + public static String XXL_RPC_ACCESS_TOKEN = "XXL-RPC-ACCESS-TOKEN"; /** * post