Commit e42c68bd authored by ginuerzh's avatar ginuerzh

fix #181

parent 3d1b135d
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment