1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

update http connect test

This commit is contained in:
Darien Raymond 2017-11-26 15:15:03 +01:00
parent 721bea5d54
commit e8901368d7
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

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