mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
fix: 修复同步远程excel数据出错
This commit is contained in:
@@ -373,7 +373,6 @@ public class HttpClientUtil {
|
||||
HttpGet httpGet = new HttpGet(url);
|
||||
// 设置请求配置
|
||||
httpGet.setConfig(config.buildRequestConfig());
|
||||
|
||||
// 设置请求头
|
||||
config.getHeader().forEach(httpGet::addHeader);
|
||||
HttpResponse response = httpClient.execute(httpGet);
|
||||
@@ -408,6 +407,7 @@ public class HttpClientUtil {
|
||||
}
|
||||
}
|
||||
if (fileName.isEmpty()) {
|
||||
url = url.split("\\?")[0];
|
||||
fileName = url.contains("/")
|
||||
? url.substring(url.lastIndexOf('/') + 1)
|
||||
: "download_" + System.currentTimeMillis();
|
||||
|
||||
Reference in New Issue
Block a user