Skip to content

Commit

Permalink
POST
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Dec 3, 2024
1 parent adc7381 commit 1c56136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webhooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func buildFormRequest(fields map[string]string) *http.Request {
}

r := strings.NewReader(values.Encode())
req, _ := http.NewRequest("POST", "/", r)
req, _ := http.NewRequest(http.MethodPost, "/", r)
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")

return req
Expand All @@ -157,7 +157,7 @@ func buildMultipartFormRequest(fields map[string]string) *http.Request {

writer.Close()

req, _ := http.NewRequest("POST", "/", buf)
req, _ := http.NewRequest(http.MethodPost, "/", buf)
req.Header.Set("Content-type", writer.FormDataContentType())

return req
Expand Down

0 comments on commit 1c56136

Please sign in to comment.