fix: 不能无限制追加 application/json

This commit is contained in:
ioito
2019-09-06 11:45:03 +08:00
parent 4a3f317d52
commit b040bb93bf
+1 -1
View File
@@ -225,7 +225,7 @@ func JSONRequest(client *http.Client, ctx context.Context, method THttpMethod, u
if header == nil {
header = http.Header{}
}
header.Add("Content-Type", "application/json")
header.Set("Content-Type", "application/json")
resp, err := Request(client, ctx, method, urlStr, header, jbody, debug)
return ParseJSONResponse(resp, err, debug)
}