1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-10 13:10:26 +08:00

fix delete

This commit is contained in:
源文雨
2023-10-10 23:25:48 +09:00
parent e8fd4c0c54
commit 5ec622d77f
6 changed files with 110 additions and 7 deletions

View File

@@ -22,8 +22,8 @@ func NewHTTPEndpointGetRequestWithAuth(ep string, auth string) (req *http.Reques
}
// NewHTTPEndpointDeleteRequestWithAuth 新建带鉴权头的 HTTP DELETE 请求
func NewHTTPEndpointDeleteRequestWithAuth(ep string, auth string) (req *http.Request, err error) {
req, err = http.NewRequest("DELETE", StandardAPI+ep, nil)
func NewHTTPEndpointDeleteRequestWithAuth(ep string, auth string, body io.Reader) (req *http.Request, err error) {
req, err = http.NewRequest("DELETE", StandardAPI+ep, body)
if err != nil {
return
}