Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 268d4f4

Browse files
committed
process body when method = PATCH
1 parent c1bfa72 commit 268d4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitea/gitea.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (c *Client) doRequest(method, path string, header http.Header, body interfa
8282
Host: u.Host,
8383
}
8484

85-
if method == "POST" || method == "PUT" {
85+
if method == "POST" || method == "PUT" || method == "PATCH" {
8686
bodyBytes, err := json.Marshal(body)
8787
if err != nil {
8888
return nil, err

0 commit comments

Comments
 (0)