From 40bbd3dfdb3bd592be004eaa5b2cf06d53f93bd6 Mon Sep 17 00:00:00 2001 From: sduoduo233 <85996970+sduoduo233@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:45:29 +0800 Subject: [PATCH] Fix: method in vmess http-opts is not used (#2846) --- transport/vmess/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/vmess/http.go b/transport/vmess/http.go index 3c15765..74ca682 100644 --- a/transport/vmess/http.go +++ b/transport/vmess/http.go @@ -58,7 +58,7 @@ func (hc *httpConn) Write(b []byte) (int, error) { } u := fmt.Sprintf("http://%s%s", host, path) - req, _ := http.NewRequest(http.MethodGet, u, bytes.NewBuffer(b)) + req, _ := http.NewRequest(hc.cfg.Method, u, bytes.NewBuffer(b)) for key, list := range hc.cfg.Headers { req.Header.Set(key, list[rand.Intn(len(list))]) }