Skip to content

Commit

Permalink
fix put request bug
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Jan 8, 2022
1 parent 93071b5 commit 02da6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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请求
Expand Down

0 comments on commit 02da6e0

Please sign in to comment.