Pārlūkot izejas kodu

Merge pull request #306 from it-noob/patch-1

许雪里 7 gadus atpakaļ
vecāks
revīzija
9f1f7fef41
Revīzijas autora e-pasts nav piesaistīts nevienam kontam

+ 3 - 3
xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java Parādīt failu

@@ -26,7 +26,7 @@ public class HttpClientUtil {
26 26
 	/**
27 27
 	 * post request
28 28
 	 */
29
-	public static byte[] postRequest(String reqURL, byte[] date) throws Exception {
29
+	public static byte[] postRequest(String reqURL, byte[] data) throws Exception {
30 30
 		byte[] responseBytes = null;
31 31
 		
32 32
 		HttpPost httpPost = new HttpPost(reqURL);
@@ -53,8 +53,8 @@ public class HttpClientUtil {
53 53
 			httpPost.setConfig(requestConfig);
54 54
 
55 55
 			// data
56
-			if (date != null) {
57
-				httpPost.setEntity(new ByteArrayEntity(date, ContentType.DEFAULT_BINARY));
56
+			if (data != null) {
57
+				httpPost.setEntity(new ByteArrayEntity(data, ContentType.DEFAULT_BINARY));
58 58
 			}
59 59
 			// do post
60 60
 			HttpResponse response = httpClient.execute(httpPost);