Skip to content

Commit 3990431

Browse files
gjermundgarabaclaudesrdtrk
authored
fix(utils): set a User-Agent on the Tendermint RPC client (#1052)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: srdtrk <srdtrk@hotmail.com>
1 parent 3ed1ced commit 3990431

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/utils/src/rpc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ impl TendermintRpcExt for HttpClient {
100100
)
101101
.client(
102102
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")
103106
.connect_timeout(Duration::from_secs(10))
104107
.timeout(Duration::from_secs(30))
105108
.pool_idle_timeout(Duration::from_secs(10))

0 commit comments

Comments
 (0)