mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 10:41:41 +00:00
rpc: client disable compression (#3430)
This commit is contained in:
@ -74,6 +74,8 @@ func makeHTTPClient(remoteAddr string) (string, *http.Client) {
|
|||||||
protocol, address, dialer := makeHTTPDialer(remoteAddr)
|
protocol, address, dialer := makeHTTPDialer(remoteAddr)
|
||||||
return protocol + "://" + address, &http.Client{
|
return protocol + "://" + address, &http.Client{
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
|
// Set to true to prevent GZIP-bomb DoS attacks
|
||||||
|
DisableCompression: true,
|
||||||
Dial: dialer,
|
Dial: dialer,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user