diff --git a/common/protocol/http/sniff.go b/common/protocol/http/sniff.go index b96c947eb..af2781c05 100644 --- a/common/protocol/http/sniff.go +++ b/common/protocol/http/sniff.go @@ -37,7 +37,8 @@ func (h *SniffHeader) Domain() string { } var ( - methods = [...]string{"get", "post", "head", "put", "delete", "options", "connect"} + // refer to https://pkg.go.dev/net/http@master#pkg-constants + methods = [...]string{"get", "post", "head", "put", "delete", "options", "connect", "patch", "trace"} errNotHTTPMethod = errors.New("not an HTTP method") )