HttpUtil.decodeParams增加isFormUrlEncoded重载

This commit is contained in:
Looly
2023-01-17 11:13:46 +08:00
parent e20c0c3fcc
commit e37292dec0
2 changed files with 4 additions and 1 deletions

View File

@@ -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);