mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-03 16:24:31 +08:00
HttpUtil.decodeParams增加isFormUrlEncoded重载
This commit is contained in:
parent
e20c0c3fcc
commit
e37292dec0
@ -3,7 +3,7 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.8.12.M1 (2023-01-16)
|
||||
# 5.8.12.M1 (2023-01-17)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 XmlUtil.readObjectFromXml增加注入漏洞的警告注释,并标识为废弃(issue#2857@Github)
|
||||
@ -11,6 +11,7 @@
|
||||
* 【core 】 重构根据file magic number判断文件类型(pr#2834@Github)
|
||||
* 【core 】 增加WGS84 坐标与墨卡托投影互转(pr#2811@Github)
|
||||
* 【extra 】 ServletUtil遵循rfc 3986优化(issue#I6ALAO@Gitee)
|
||||
* 【http 】 HttpUtil.decodeParams增加isFormUrlEncoded重载(pr#918@Gitee)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【core 】 修复HexUtil.isHexNumber()对"-"的判断问题(issue#2857@Github)
|
||||
|
@ -623,7 +623,9 @@ public class HttpUtil {
|
||||
*
|
||||
* @param paramsStr 参数字符串(或者带参数的Path)
|
||||
* @param charset 字符集
|
||||
* @param isFormUrlEncoded 是否为x-www-form-urlencoded模式,此模式下空格会编码为'+'
|
||||
* @return 参数Map
|
||||
* @since 5.8.12
|
||||
*/
|
||||
public static Map<String, List<String>> decodeParams(String paramsStr, String charset, boolean isFormUrlEncoded) {
|
||||
return decodeParams(paramsStr, CharsetUtil.charset(charset), isFormUrlEncoded);
|
||||
|
Loading…
x
Reference in New Issue
Block a user