Skip to content

Commit

Permalink
fix #181
Browse files Browse the repository at this point in the history
  • Loading branch information
ginuerzh committed Jun 15, 2019
1 parent 3d1b135 commit e42c68b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

2 comments on commit e42c68b

@wen-long
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

试了下已经可以了,太棒了!

@kdrx
Copy link

@kdrx kdrx commented on e42c68b Dec 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

然而并没有

Please sign in to comment.