Skip to content

Commit 865295f

Browse files
committed
fix header name
1 parent 4ddd217 commit 865295f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/lib/external_price_api/src/coingecko_api.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct CoinGeckoPriceAPIClient {
1717

1818
const DEFAULT_COINGECKO_API_URL: &str = "https://pro-api.coingecko.com";
1919
const COINGECKO_AUTH_HEADER: &str = "x-cg-pro-api-key";
20-
const USER_AGENT_HEADER: &str = "User-Agent";
20+
const USER_AGENT_HEADER: &str = "user-agent";
2121
const USER_AGENT_VALUE: &str = "zksync-era-node/0.1 (https://github.com/matter-labs/zksync-era)";
2222
const ETH_ID: &str = "eth";
2323
const ZKSYNC_ID: &str = "zksync";
@@ -176,6 +176,7 @@ mod test {
176176

177177
when = when.query_param("contract_addresses", address.clone());
178178
when = when.query_param("vs_currencies", ETH_ID);
179+
when = when.header(USER_AGENT_HEADER, USER_AGENT_VALUE);
179180
api_key.map(|key| when.header(COINGECKO_AUTH_HEADER, key));
180181

181182
if let Some(p) = price {

0 commit comments

Comments
 (0)