fix form method

This commit is contained in:
Looly 2021-07-23 22:51:55 +08:00
parent 32797d2d14
commit 3ae1d39b0e
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@
* 【core 】 Sftp增加syncUpload方法pr#375@Gitee
* 【core 】 改进NetUtil.getLocalHost逻辑issue#1717@Github
* 【core 】 UseragentUtil增加QQ、alipay、taobao、uc等浏览器识别支持issue#1719@Github
* 【http 】 HttpRequest.form方法判断集合增强pr#381@Gitee
### 🐞Bug修复
* 【core 】 修复RobotUtil双击右键问题pr#1721@Github

View File

@ -493,9 +493,9 @@ public class HttpRequest extends HttpBase<HttpRequest> {
// 普通值
String strValue;
if (value instanceof List) {
if (value instanceof Iterable) {
// 列表对象
strValue = CollUtil.join((List<?>) value, ",");
strValue = CollUtil.join((Iterable<?>) value, ",");
} else if (ArrayUtil.isArray(value)) {
if (File.class == ArrayUtil.getComponentType(value)) {
// 多文件