Skip to content

Commit

Permalink
fix: remove unneeded http proxy compression
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Jul 24, 2024
1 parent d6a1af2 commit cc7823d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions listener/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func newClient(srcConn net.Conn, tunnel C.Tunnel, additions ...inbound.Addition)
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
DisableCompression: true, // prevents the Transport add "Accept-Encoding: gzip"
DialContext: func(context context.Context, network, address string) (net.Conn, error) {
if network != "tcp" && network != "tcp4" && network != "tcp6" {
return nil, errors.New("unsupported network " + network)
Expand Down

0 comments on commit cc7823d

Please sign in to comment.