瀏覽代碼

update http connect test

Darien Raymond 8 年之前
父節點
當前提交
e8901368d7
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      testing/scenarios/http_test.go

+ 2 - 0
testing/scenarios/http_test.go

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