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

@@ -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)) {
// 多文件