Skip to content

Commit

Permalink
Also permit setting custom user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Sep 17, 2024
1 parent 076cd36 commit 59c8dc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/priceClient/adapters/baseAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class BaseHTTPAdapter {
protected async query(path: string, urlArgs?: object): Promise<unknown> {
const url = `https://${this.host}/${path ?? ""}`;
const args = {
headers: { "User-Agent": process.env.ACROSS_USER_AGENT ?? "across-protocol" },
timeout: this.timeout,
params: urlArgs ?? {},
};
Expand Down

0 comments on commit 59c8dc6

Please sign in to comment.