mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #2766 from ioito/hotfix/qx-utils-jsonrequest-fix
fix: 不能无限制追加 application/json
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user