mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复HttpDownloader全局超时无效问题
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user