Skip to content

Commit 74447ed

Browse files
authored
Merge pull request #244 from cm-dyoshikawa/fix-options-headers
Always use default settings for headers
2 parents 5d9874d + d96da4a commit 74447ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export default async function requestAndResultsFormatter(options: OpenGraphScrap
5252
options.url ?? '',
5353
{
5454
signal: AbortSignal.timeout((options.timeout ?? 10) * 1000),
55-
headers: { Origin: options.url ?? '', Accept: 'text/html' },
5655
...options.fetchOptions,
56+
headers: { Origin: options.url ?? '', Accept: 'text/html', ...options.fetchOptions?.headers },
5757
},
5858
);
5959

0 commit comments

Comments
 (0)