From e42c68bd2b363fa8b8dfefec4dc0dca8e5027da4 Mon Sep 17 00:00:00 2001 From: ginuerzh Date: Sat, 15 Jun 2019 10:39:04 +0800 Subject: [PATCH] fix #181 --- http2.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http2.go b/http2.go index ff72480..fd40832 100644 --- a/http2.go +++ b/http2.go @@ -53,11 +53,11 @@ func (c *http2Connector) Connect(conn net.Conn, addr string, options ...ConnectO ProtoMajor: 2, ProtoMinor: 0, Body: pr, - Host: cc.addr, + Host: addr, ContentLength: -1, } - // TODO: use the standard CONNECT method. - req.Header.Set("Gost-Target", addr) + // DEPRECATED + //req.Header.Set("Gost-Target", addr) user := opts.User if user == nil {