diff --git a/CHANGELOG.md b/CHANGELOG.md index 02294376a..0182d0b84 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.8.22(2023-08-10) +# 5.8.22(2023-08-13) ### 🐣新特性 * 【core 】 NumberUtil.nullToZero增加重载(issue#I7PPD2@Gitee) @@ -10,13 +10,14 @@ * 【all 】 修改异常包装策略:运行时异常不包装,只包装非运行时异常(issue#I7RJZT@Gitee) * 【core 】 增加IJSONTypeConverter,避免反射调用(pr#1051@Gitee) * 【http 】 优化HttpUtil.urlWithForm方法(pr#1052@Gitee) +* 【http 】 优化HttpUtil.urlWithForm方法(pr#1052@Gitee) ### 🐞Bug修复 * 【core 】 修复NumberUtil.toBigDecimal转换科学计数法问题(issue#3241@Github) * 【core 】 修复PathUtil.moveContent当target不存在时会报错问题(issue#3238@Github) * 【db 】 修复SqlUtil.formatSql 格式化的sql换行异常(pr#3247@Github) * 【core 】 修复DateUtil.parse 给定一个时间解析错误问题(issue#I7QI6R@Gitee) -* 【core 】 修复FileUtil无法正确识别Smb网络存储的路径问题(issue#3253@Github) +* 【core 】 去除默认的ACCEPT_LANGUAGE(issue#3258@Github) ------------------------------------------------------------------------------------------------------------- # 5.8.21(2023-07-29) diff --git a/hutool-http/src/main/java/cn/hutool/http/GlobalHeaders.java b/hutool-http/src/main/java/cn/hutool/http/GlobalHeaders.java index 210d17d60..197dd49ab 100644 --- a/hutool-http/src/main/java/cn/hutool/http/GlobalHeaders.java +++ b/hutool-http/src/main/java/cn/hutool/http/GlobalHeaders.java @@ -53,7 +53,8 @@ public enum GlobalHeaders { header(Header.ACCEPT, "text/html,application/json,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", true); header(Header.ACCEPT_ENCODING, "gzip, deflate", true); - header(Header.ACCEPT_LANGUAGE, "zh-CN,zh;q=0.8", true); + // issue#3258,某些场景(如国外)不能指定中文 + //header(Header.ACCEPT_LANGUAGE, "zh-CN,zh;q=0.8", true); // 此Header只有在post请求中有用,因此在HttpRequest的method方法中设置此头信息,此处去掉 // header(Header.CONTENT_TYPE, ContentType.FORM_URLENCODED.toString(CharsetUtil.CHARSET_UTF_8), true); header(Header.USER_AGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 Hutool", true);