We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed1ced commit 3990431Copy full SHA for 3990431
1 file changed
packages/utils/src/rpc.rs
@@ -100,6 +100,9 @@ impl TendermintRpcExt for HttpClient {
100
)
101
.client(
102
reqwest_0_11::ClientBuilder::new()
103
+ // Send an explicit User-Agent. reqwest sends none by default, and some RPC
104
+ // providers reject empty User-Agent requests with 403 Forbidden.
105
+ .user_agent("proof-api")
106
.connect_timeout(Duration::from_secs(10))
107
.timeout(Duration::from_secs(30))
108
.pool_idle_timeout(Duration::from_secs(10))
0 commit comments