Skip to content

Commit 47be331

Browse files
authored
Merge pull request #1 from momenalrefaai/patch-1
Add support for HTTP DELETE method in validateRequestMethod function
2 parents 31e2500 + 37430c1 commit 47be331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/cli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func (b body) checkResponseBody(body string) error {
359359
// validates if the HTTP request method is supported
360360
func (t test) validateRequestMethod() error {
361361
switch strings.ToUpper(t.Request.Method) {
362-
case "GET", "POST", "PUT":
362+
case "GET", "POST", "PUT", "DELETE":
363363
return nil
364364
}
365365
return fmt.Errorf("http method '%s' is not supported", t.Request.Method)

0 commit comments

Comments
 (0)