fix #181
This commit is contained in:
parent
3d1b135dee
commit
e42c68bd2b
6
http2.go
6
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user