Skip to content

Commit

Permalink
Fix: method in vmess http-opts is not used (#2846)
Browse files Browse the repository at this point in the history
  • Loading branch information
sduoduo233 authored Jul 25, 2023
1 parent 07ed6e8 commit 40bbd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/vmess/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))])
}
Expand Down

0 comments on commit 40bbd3d

Please sign in to comment.