Skip to content

Commit

Permalink
fix: add missing function call
Browse files Browse the repository at this point in the history
  • Loading branch information
gadatwork committed Oct 31, 2024
1 parent 1b0e287 commit 4303748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const buildOutgoingHttpHeaders = (headers: Headers | Record<string, strin
const res: OutgoingHttpHeaders = {}

const cookies = []
const entries = headers instanceof Headers ? headers.entries : Object.entries(headers);
const entries = headers instanceof Headers ? headers.entries() : Object.entries(headers);

for (const [k, v] of entries) {
if (k === 'set-cookie') {
Expand Down

0 comments on commit 4303748

Please sign in to comment.