Skip to content

Commit

Permalink
refactor: remove default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Dec 17, 2022
1 parent 3ee4b30 commit 402e11e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/parseHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function parseHeaders(rawHeaders) {
return null
}

const unflattened = unflat(rawHeaders, 2)
const unflattened = unflat(rawHeaders)

return fromEntries(unflattened)
}
2 changes: 1 addition & 1 deletion src/utils/parseMultiValueHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function parseMultiValueHeaders(rawHeaders) {
}

const map = new Map()
const unflattened = unflat(rawHeaders, 2)
const unflattened = unflat(rawHeaders)

// eslint-disable-next-line no-restricted-syntax
for (const [key, value] of unflattened) {
Expand Down

0 comments on commit 402e11e

Please sign in to comment.