1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00

Add PATCH TRACE http method to sniffer (#1314)

This commit is contained in:
ayanamist
2021-11-05 13:22:30 +08:00
committed by GitHub
parent 5dedf7d951
commit 80d92381af

View File

@@ -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")
)