mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Add PATCH TRACE http method to sniffer (#1314)
This commit is contained in:
parent
5dedf7d951
commit
80d92381af
@ -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")
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user