Skip to content

Commit 3d01597

Browse files
author
berry_cooper
committed
单机字节数组上传测试pass
1 parent 7debe1e commit 3d01597

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/berry/http/HttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static Response post(String url, String body, StringMap header) {
147147
*/
148148
public static Response postComplex(String url, StringMap params, StringMap header) {
149149
Gson gson = new GsonBuilder().enableComplexMapKeySerialization().create();
150-
RequestBody requestBody = RequestBody.create(MediaType.get(APPLICATION_JSON_UTF8_VALUE), gson.toJson(params));
150+
RequestBody requestBody = RequestBody.create(MediaType.get(APPLICATION_JSON_UTF8_VALUE), gson.toJson(params.map()));
151151
return post(url, requestBody, header);
152152
}
153153

0 commit comments

Comments
 (0)