mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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