Commit e2be31b2 by xuxueli

Merge branch 'master' of https://github.com/xuxueli/xxl-job

parents 93be9097 9f1f7fef
...@@ -26,7 +26,7 @@ public class HttpClientUtil { ...@@ -26,7 +26,7 @@ public class HttpClientUtil {
/** /**
* post request * 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; byte[] responseBytes = null;
HttpPost httpPost = new HttpPost(reqURL); HttpPost httpPost = new HttpPost(reqURL);
...@@ -53,8 +53,8 @@ public class HttpClientUtil { ...@@ -53,8 +53,8 @@ public class HttpClientUtil {
httpPost.setConfig(requestConfig); httpPost.setConfig(requestConfig);
// data // data
if (date != null) { if (data != null) {
httpPost.setEntity(new ByteArrayEntity(date, ContentType.DEFAULT_BINARY)); httpPost.setEntity(new ByteArrayEntity(data, ContentType.DEFAULT_BINARY));
} }
// do post // do post
HttpResponse response = httpClient.execute(httpPost); HttpResponse response = httpClient.execute(httpPost);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment