From 625d9c5d97c2cb6a5643f07751d102cc4433b731 Mon Sep 17 00:00:00 2001 From: Looly Date: Thu, 27 Apr 2023 12:04:27 +0800 Subject: [PATCH] fix code --- .../java/org/dromara/hutool/http/client/HttpDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-http/src/main/java/org/dromara/hutool/http/client/HttpDownloader.java b/hutool-http/src/main/java/org/dromara/hutool/http/client/HttpDownloader.java index e0f36d366..327c579da 100644 --- a/hutool-http/src/main/java/org/dromara/hutool/http/client/HttpDownloader.java +++ b/hutool-http/src/main/java/org/dromara/hutool/http/client/HttpDownloader.java @@ -104,7 +104,7 @@ public class HttpDownloader { * @return 文件 * @since 5.7.12 */ - public File downloadFile(final String url, final File targetFileOrDir, final String tempFileSuffix, final int timeout, final StreamProgress streamProgress) { + public static File downloadFile(final String url, final File targetFileOrDir, final String tempFileSuffix, final int timeout, final StreamProgress streamProgress) { return requestDownload(url, timeout).body().write(targetFileOrDir, tempFileSuffix, streamProgress); }