fix put request bug
This commit is contained in:
parent
93071b583f
commit
02da6e0684
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ func RequestPutJSON(url string, data interface{}, headers map[string]string) Res
|
|||
headers = map[string]string{}
|
||||
}
|
||||
headers["content-type"] = "application/json;charset=utf8"
|
||||
return RequestSend("POST", url, map[string]interface{}{}, data, headers)
|
||||
return RequestSend("PUT", url, map[string]interface{}{}, data, headers)
|
||||
}
|
||||
|
||||
// RequestSend 发送Request请求
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue