Skip to content

Commit 9a953ec

Browse files
committed
feat: added authorization header for api token
1 parent 41dd755 commit 9a953ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ impl RPCEndpoint {
103103
let mut header = HeaderValue::from_str(rpc_api_key)?;
104104
header.set_sensitive(true);
105105

106+
headers.insert(
107+
reqwest::header::HeaderName::from_static("authorization"),
108+
header.clone(),
109+
);
106110
headers.insert(
107111
reqwest::header::HeaderName::from_static("x-api-key"),
108112
header,

0 commit comments

Comments
 (0)