Procházet zdrojové kódy

修改http请求工具类入参拼写错误

大水牛 před 7 roky
rodič
revize
34533c16b9
No account linked to committer's email

+ 3 - 3
xxl-job-core/src/main/java/com/xxl/job/core/util/HttpClientUtil.java Zobrazit soubor

26
 	/**
26
 	/**
27
 	 * post request
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
 		byte[] responseBytes = null;
30
 		byte[] responseBytes = null;
31
 		
31
 		
32
 		HttpPost httpPost = new HttpPost(reqURL);
32
 		HttpPost httpPost = new HttpPost(reqURL);
53
 			httpPost.setConfig(requestConfig);
53
 			httpPost.setConfig(requestConfig);
54
 
54
 
55
 			// data
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
 			// do post
59
 			// do post
60
 			HttpResponse response = httpClient.execute(httpPost);
60
 			HttpResponse response = httpClient.execute(httpPost);