Skip to content

Commit

Permalink
refactor utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ariskemper committed Jan 31, 2024
1 parent c74dbd5 commit 0885eab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ export const buildOutgoingHttpHeaders = (headers: Headers): OutgoingHttpHeaders

const cookies = []
for (const [k, v] of headers) {
if (k === 'set-cookie') {
cookies.push(v)
} else {
res[k] = v
}
k === 'set-cookie' ? cookies.push(v) : (res[k] = v)
}
if (cookies.length > 0) {
res['set-cookie'] = cookies
Expand Down

0 comments on commit 0885eab

Please sign in to comment.