1
0

Fix: method in vmess http-opts is not used (#2846)

This commit is contained in:
sduoduo233 2023-07-25 19:45:29 +08:00 committed by GitHub
parent 07ed6e8bef
commit 40bbd3dfdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))])
}