处理远程调用post表单参数问题

This commit is contained in:
wanggeng 2022-08-10 11:06:18 +08:00
parent 36e5ebaffe
commit 124a2ff0da

View File

@ -213,7 +213,7 @@ public class RestRemoteRequest {
httpHeaders.setContentType(MediaType.APPLICATION_FORM_URLENCODED); httpHeaders.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
} }
if (!formVariableParams.isEmpty()) { if (!formVariableParams.isEmpty()) {
formVariableParams.forEach(multiValueMap::add); formVariableParams.forEach(multiValueMap::put);
} }
httpEntity = new HttpEntity(multiValueMap, httpHeaders); httpEntity = new HttpEntity(multiValueMap, httpHeaders);
} else { } else {