From 2b5a27a51ea8fa9d55f499181a9314c6a97e8eee Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Thu, 5 Jul 2018 18:49:06 +0800 Subject: [PATCH] update http2 server path --- http2_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http2_test.go b/http2_test.go index efa3f42..5233a99 100644 --- a/http2_test.go +++ b/http2_test.go @@ -16,9 +16,9 @@ import ( ) func TestHttp2Client(t *testing.T) { - conn, err := tls.Dial("tcp", "www.simicloud.com:443", &tls.Config{ + conn, err := tls.Dial("tcp", "nghttp2.org:443", &tls.Config{ NextProtos: []string{"h2"}, - ServerName: "www.simicloud.com", + ServerName: "nghttp2.org", }) if err != nil { t.Fatal(err) @@ -38,7 +38,7 @@ func TestHttp2Client(t *testing.T) { param.Add("f", "d") data := bytes.NewReader([]byte(param.Encode())) req, _ := http.NewRequest("POST", - "https://www.simicloud.com/media/httpbin/post?a=b&c=d", + "https://nghttp2.org/httpbin/post?a=b&c=d", data) log.Printf("%+v", req) req.Header.Set("accept", "*/*") @@ -55,7 +55,7 @@ func TestHttp2Client(t *testing.T) { //res.Write(os.Stderr) req, _ = http.NewRequest("GET", - "https://www.simicloud.com/media/httpbin/get?a=b&c=d", nil) + "https://nghttp2.org/httpbin/get?a=b&c=d", nil) res, err = h2conn.CreateRequest(req) if err != nil { t.Fatal(err)