From 305845948d4e8ad6a7f4e4be2d50e12e5f17123c Mon Sep 17 00:00:00 2001 From: Looly Date: Mon, 21 Feb 2022 00:17:36 +0800 Subject: [PATCH] fix bug --- CHANGELOG.md | 3 ++- .../src/test/java/cn/hutool/http/HttpUtilTest.java | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01e90509c..711cb4eff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.7.22 (2022-02-17) +# 5.7.22 (2022-02-21) ### 🐣新特性 * 【poi 】 ExcelUtil.readBySax增加对POI-5.2.0的兼容性(issue#I4TJF4@gitee) @@ -12,6 +12,7 @@ ### 🐞Bug修复 * 【cache 】 修复ReentrantCache.toString方法线程不安全问题(issue#2140@Github) +* 【core 】 修复SystemPropsUtil.getInt返回long问题(pr#546@Gitee) ------------------------------------------------------------------------------------------------------------- # 5.7.21 (2022-02-14) diff --git a/hutool-http/src/test/java/cn/hutool/http/HttpUtilTest.java b/hutool-http/src/test/java/cn/hutool/http/HttpUtilTest.java index 00ad46b87..7853751aa 100644 --- a/hutool-http/src/test/java/cn/hutool/http/HttpUtilTest.java +++ b/hutool-http/src/test/java/cn/hutool/http/HttpUtilTest.java @@ -3,6 +3,7 @@ package cn.hutool.http; import cn.hutool.core.codec.Base64; import cn.hutool.core.io.FileUtil; import cn.hutool.core.lang.Console; +import cn.hutool.core.net.url.UrlBuilder; import cn.hutool.core.util.CharsetUtil; import cn.hutool.core.util.ReUtil; import org.junit.Assert; @@ -352,4 +353,15 @@ public class HttpUtilTest { .execute().body(); Console.log(body); } + + @Test + @Ignore + public void getPicTest(){ + String url = "https://p3-sign.douyinpic.com/tos-cn-i-0813/f41afb2e79a94dcf80970affb9a69415~noop.webp?x-expires=1647738000&x-signature=%2Br1ekUCGjXiu50Y%2Bk0MO4ovulK8%3D&from=4257465056&s=PackSourceEnum_DOUYIN_REFLOW&se=false&sh=&sc=&l=2022021809224601020810013524310DD3&biz_tag=aweme_images"; + final String s = UrlBuilder.ofHttp(url).toString(); + // Assert.assertEquals(url, s); + + final HttpRequest request = HttpRequest.of(url, null).method(Method.GET); + Console.log(request.execute().body()); + } }