记得上下班打卡 | git大法好,push需谨慎

Commit b054cd96 authored by 胡佳晨's avatar 胡佳晨

提交券

parent 7a2d89e2
......@@ -189,10 +189,10 @@ public class HttpUtil {
// header
HttpHeaders httpHeaders = new HttpHeaders();
httpHeaders.add("Accept", MediaType.APPLICATION_JSON.toString());
httpHeaders.set("Content-Type","application/json;charset=UTF-8");
if (headers != null) {
headers.add("Accept", MediaType.APPLICATION_JSON.toString());
httpHeaders.addAll(headers);
httpHeaders.set("Content-Type","application/json;charset=UTF-8");
}
HttpEntity<Object> httpEntity = new HttpEntity(params, httpHeaders);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment