Преглед на файлове

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