Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Dec 31, 2023
1 parent fde94e7 commit 56b790e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/page/getFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@ export function getFetch(pageState: PageState): typeof fetch {

//#endregion

request ??= new Request(input, init);
request ??= new Request(input, {
...init,
headers: Object.fromEntries(headersMap),
});
if (isFlaggedRequest) {
request = await flagRequest(
pageState.isChromium,
Expand Down

0 comments on commit 56b790e

Please # to comment.