This commit is contained in:
Looly
2024-09-18 20:41:23 +08:00
parent 71019b6935
commit c489cc7735
78 changed files with 672 additions and 890 deletions

View File

@@ -19,7 +19,7 @@ package org.dromara.hutool.http;
import org.dromara.hutool.core.collection.ListUtil;
import org.dromara.hutool.core.net.url.UrlQuery;
import org.dromara.hutool.core.util.CharsetUtil;
import org.dromara.hutool.json.OldJSONObject;
import org.dromara.hutool.json.JSONObject;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
@@ -30,8 +30,8 @@ public class IssueIAFKWPTest {
@Test
void urlWithFormTest() {
final OldJSONObject obj = new OldJSONObject();
obj.put("fields", ListUtil.of("1", "2", "good"));
final JSONObject obj = new JSONObject();
obj.set("fields", ListUtil.of("1", "2", "good"));
final Map<String, Object> params = new HashMap<>();
params.put("query", obj.toString());