Skip to content

Commit

Permalink
Merge pull request tendermint#60 from binance-chain/discompress
Browse files Browse the repository at this point in the history
[R4R]disable compress in rpc client
  • Loading branch information
rickyyangz authored Mar 19, 2019
2 parents 25966b7 + 857684e commit 7a58359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpc/lib/client/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func makeHTTPClient(remoteAddr string) (string, *http.Client) {
protocol, address, dialer := makeHTTPDialer(remoteAddr)
return protocol + "://" + address, &http.Client{
Transport: &http.Transport{
Dial: dialer,
// Set to true to prevent GZIP-bomb DoS attacks
DisableCompression: true,
Dial: dialer,
},
}
}
Expand Down

0 comments on commit 7a58359

Please sign in to comment.