Skip to content

Commit

Permalink
Merge pull request #1484 from projectdiscovery/issue-1384-debug-method
Browse files Browse the repository at this point in the history
Adding support for Debug http verb
  • Loading branch information
ehsandeep committed Jan 16, 2022
2 parents a4c3a5c + 436d7b4 commit 2ee27c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v2/pkg/protocols/http/http_method_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const (
HTTPPatch
// name:PURGE
HTTPPurge
// name:Debug
HTTPDebug
limit
)

Expand All @@ -48,6 +50,7 @@ var HTTPMethodMapping = map[HTTPMethodType]string{
HTTPTrace: "TRACE",
HTTPPatch: "PATCH",
HTTPPurge: "PURGE",
HTTPDebug: "DEBUG",
}

// GetSupportedHTTPMethodTypes returns list of supported types
Expand Down Expand Up @@ -90,7 +93,7 @@ func (holder HTTPMethodTypeHolder) JSONSchemaType() *jsonschema.Type {
gotType := &jsonschema.Type{
Type: "string",
Title: "method is the HTTP request method",
Description: "Method is the HTTP Request Method,enum=GET,enum=HEAD,enum=POST,enum=PUT,enum=DELETE,enum=CONNECT,enum=OPTIONS,enum=TRACE,enum=PATCH,enum=PURGE",
Description: "Method is the HTTP Request Method,enum=GET,enum=HEAD,enum=POST,enum=PUT,enum=DELETE,enum=CONNECT,enum=OPTIONS,enum=TRACE,enum=PATCH,enum=PURGE,enum=DEBUG",
}
for _, types := range GetSupportedHTTPMethodTypes() {
gotType.Enum = append(gotType.Enum, types.String())
Expand Down

0 comments on commit 2ee27c8

Please sign in to comment.