From 34533c16b9ba68a812c208eb1c0b1073e6f584d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=B0=B4=E7=89=9B?= Date: Mon, 12 Mar 2018 18:54:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9http=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=B1=BB=E5=85=A5=E5=8F=82=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xxl/job/core/util/HttpClientUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java b/xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java index 7642475a..dedcf3aa 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java @@ -26,7 +26,7 @@ public class HttpClientUtil { /** * post request */ - public static byte[] postRequest(String reqURL, byte[] date) throws Exception { + public static byte[] postRequest(String reqURL, byte[] data) throws Exception { byte[] responseBytes = null; HttpPost httpPost = new HttpPost(reqURL); @@ -53,8 +53,8 @@ public class HttpClientUtil { httpPost.setConfig(requestConfig); // data - if (date != null) { - httpPost.setEntity(new ByteArrayEntity(date, ContentType.DEFAULT_BINARY)); + if (data != null) { + httpPost.setEntity(new ByteArrayEntity(data, ContentType.DEFAULT_BINARY)); } // do post HttpResponse response = httpClient.execute(httpPost);