增加报送的头信息

back_recharge
jiahuiwen 2022-02-17 19:26:02 +08:00
parent 283439f860
commit f2e2835076
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ public class HttpPool {
HttpPost httpPost = new HttpPost(url);
List<NameValuePair> nvps =getFromMap(parms);
httpPost.setEntity(new UrlEncodedFormEntity(nvps));
httpPost.addHeader("Content-Type", "application/json");
CloseableHttpResponse response2 = httpclient.execute(httpPost);
try {