修复HttpDownloader全局超时无效问题

This commit is contained in:
Looly
2024-04-26 15:30:04 +08:00
parent 88cf47b5bb
commit 5a1b50f1de
2 changed files with 30 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ public class HttpDownloader {
* @param url 请求的url
* @param timeout 超时毫秒数
* @return 文件数据
* @since 5.8.28
*/
public static byte[] downloadBytes(String url, int timeout) {
return requestDownload(url, timeout).bodyBytes();