فهرست منبع

http文件上传添加client_id

demon 9 سال پیش
والد
کامیت
ea9605f553
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      Hos-resource/src/main/java/com/yihu/ehr/crawler/service/EsbHttp.java

+ 1 - 0
Hos-resource/src/main/java/com/yihu/ehr/crawler/service/EsbHttp.java

@ -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) {