Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Commit 2aadf24

Browse files
committed
* 优化低配设备cpu占用率过高导致传输速度慢
1 parent fca7fda commit 2aadf24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/zxbu/webdavteambition/store/AliYunDriverClientService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public Response download(String path, HttpServletRequest request, long size ) {
331331
String json = client.post("/file/get_download_url", downloadRequest);
332332
Object url = JsonUtil.getJsonNodeValue(json, "url");
333333
LOGGER.debug("{} url = {}", path, url);
334-
return client.download(url.toString(), request, size);
334+
return client.download(url.toString().replaceAll("^https://", "http://"), request, size);
335335
}
336336

337337
private TFile getNodeIdByPath2(String path) {

0 commit comments

Comments
 (0)