1
0
mirror of https://gitee.com/dromara/hutool.git synced 2025-04-05 17:37:59 +08:00

修复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
CHANGELOG.md
hutool-http/src/main/java/cn/hutool/http

View File

@ -2,7 +2,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.19.M1 (2023-04-25)
# 5.8.19.M1 (2023-04-27)
### 🐣新特性
* 【db 】 优化HttpRequest.toString()内容打印issue#3072@Github
@ -13,6 +13,7 @@
* 【core 】 修复VIN车架号正则问题pr#3078@Github
* 【core 】 修复HtmlUtil的removeHtmlAttr方法匹配问题issue#I6YNTF@Gitee
* 【core 】 修复JSONUtil.toBean目标存在Map字段无序问题issue#I6YN2A@Gitee
* 【http 】 修复HttpDownloader.downloadFile 方法缺少static问题issue#I6Z8VU@Gitee
-------------------------------------------------------------------------------------------------------------
# 5.8.18 (2023-04-16)

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);
}