Skip to content

Commit

Permalink
Added default User-Agent substreams-sink header
Browse files Browse the repository at this point in the history
  • Loading branch information
chamorin committed Aug 14, 2023
1 parent 9ffa810 commit 5aebba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export async function setup(options: RunOptions) {
const cursorPath = options.cursorPath;
const productionMode = !options.disableProductionMode;

// Adding default headers
headers.set("User-Agent", "substreams-sink");

// Apply params
if (params.length && substreamPackage.modules) {
applyParams(params, substreamPackage.modules.modules);
Expand Down

0 comments on commit 5aebba9

Please sign in to comment.