Skip to content

Commit

Permalink
Merge pull request #244 from cm-dyoshikawa/fix-options-headers
Browse files Browse the repository at this point in the history
Always use default settings for headers
  • Loading branch information
jshemas authored Aug 29, 2024
2 parents 5d9874d + d96da4a commit 74447ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export default async function requestAndResultsFormatter(options: OpenGraphScrap
options.url ?? '',
{
signal: AbortSignal.timeout((options.timeout ?? 10) * 1000),
headers: { Origin: options.url ?? '', Accept: 'text/html' },
...options.fetchOptions,
headers: { Origin: options.url ?? '', Accept: 'text/html', ...options.fetchOptions?.headers },
},
);

Expand Down

0 comments on commit 74447ed

Please sign in to comment.