mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add ua
This commit is contained in:
parent
4a04bae1e2
commit
cde74fe319
@ -3,13 +3,13 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.4.6 (2020-10-22)
|
||||
# 5.4.6 (2020-10-23)
|
||||
|
||||
### 新特性
|
||||
* 【http 】 HttpRequest增加basicProxyAuth方法(issue#I1YQGM@Gitee)
|
||||
* 【core 】 NumberUtil.toStr修改逻辑,去掉BigDecimal的科学计数表示(pr#196@Gitee)
|
||||
* 【core 】 ListUtil.page第一页页码使用PageUtil(pr#198@Gitee)
|
||||
* 【http 】 增加微信ua识别(pr#1178@Github)
|
||||
* 【http 】 增加微信、企业微信ua识别(pr#1179@Github)
|
||||
|
||||
### Bug修复
|
||||
* 【core 】 修复ChineseDate没有忽略时分秒导致计算错误问题(issue#I1YW12@Gitee)
|
||||
|
@ -4,30 +4,19 @@ import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import cn.hutool.core.util.ReUtil;
|
||||
import cn.hutool.core.util.ZipUtil;
|
||||
import cn.hutool.http.Header;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.http.HttpUtil;
|
||||
import lombok.SneakyThrows;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.net.URL;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class HttpUtilTest {
|
||||
@Test
|
||||
public void utlTest() {
|
||||
File file = new File("/Users/Downloads/test");
|
||||
File zipFile = new File(file, "demo.zip");
|
||||
HttpUtil.downloadFile("http://192.168.6.106:8000/demo.zip", file);
|
||||
ZipUtil.unzip(zipFile);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user