Skip to content

Commit 8ff7ee0

Browse files
committed
Always enable default settings for headers
1 parent 5d9874d commit 8ff7ee0

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,7 +52,7 @@ 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' },
55+
headers: { Origin: options.url ?? '', Accept: 'text/html', ...options.fetchOptions?.headers },
5656
...options.fetchOptions,
5757
},
5858
);

0 commit comments

Comments
 (0)