1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,8 @@ func (h *SniffHeader) Domain() string {
} }
var ( 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") errNotHTTPMethod = errors.New("not an HTTP method")
) )