Skip to content

Commit

Permalink
[PECO-2049] Add custom auth headers into cloud fetch request (#267)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacky Hu <[email protected]>
  • Loading branch information
jackyhu-db authored Oct 25, 2024
1 parent 1adcb94 commit 56bd0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/result/CloudFetchResultHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class CloudFetchResultHandler implements IResultsProvider<ArrowBa
throw new Error('CloudFetch link has expired');
}

const response = await this.fetch(link.fileLink);
const response = await this.fetch(link.fileLink, { headers: link.httpHeaders });
if (!response.ok) {
throw new Error(`CloudFetch HTTP error ${response.status} ${response.statusText}`);
}
Expand Down

0 comments on commit 56bd0d9

Please sign in to comment.