mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
update http connect test
This commit is contained in:
parent
721bea5d54
commit
e8901368d7
@ -125,6 +125,8 @@ func TestHttpConnectMethod(t *testing.T) {
|
||||
payload := make([]byte, 1024*64)
|
||||
common.Must2(rand.Read(payload))
|
||||
req, err := http.NewRequest("Connect", "http://"+dest.NetAddr()+"/", bytes.NewReader(payload))
|
||||
req.Header.Set("X-a", "b")
|
||||
req.Header.Set("X-b", "d")
|
||||
common.Must(err)
|
||||
|
||||
resp, err := client.Do(req)
|
||||
|
Loading…
Reference in New Issue
Block a user