mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-24 18:21:38 +00:00
rpc: client disable compression (#3430)
This commit is contained in:
@ -74,7 +74,9 @@ 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{
|
||||||
Dial: dialer,
|
// Set to true to prevent GZIP-bomb DoS attacks
|
||||||
|
DisableCompression: true,
|
||||||
|
Dial: dialer,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user