修复HttpDownloader.downloadFile 方法缺少static问题

This commit is contained in:
Looly
2023-04-27 12:05:10 +08:00
parent 07284d0c62
commit f96cf1127c
2 changed files with 3 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ public class HttpDownloader {
* @return 下载大小
* @since 5.7.12
*/
public long downloadFile(String url, File targetFileOrDir, String tempFileSuffix, int timeout, StreamProgress streamProgress) {
public static long downloadFile(String url, File targetFileOrDir, String tempFileSuffix, int timeout, StreamProgress streamProgress) {
return requestDownload(url, timeout).writeBody(targetFileOrDir, tempFileSuffix, streamProgress);
}