|
@ -329,6 +329,7 @@ public class EsbHttp {
|
|
|
formParams.add(new BasicNameValuePair("token", token));
|
|
|
Map<String, Object> header = new HashMap<>();
|
|
|
header.put("Authorization", "Basic " + HttpHelper.clientKey);
|
|
|
header.put("User-Agent", "client " + HttpHelper.clientId);
|
|
|
HttpResponse response = HttpHelper.postFile(uploadMethod, formParams, file.getAbsolutePath(), header);
|
|
|
|
|
|
if (response != null && response.getStatusCode() == HttpStatus.SC_OK) {
|