Skip to content

Commit

Permalink
fix(useFetch): remove unnecessary spread operator in iterable convers…
Browse files Browse the repository at this point in the history
…ion (#3660)
  • Loading branch information
BlackCrowxyz committed Feb 20, 2024
1 parent b94de90 commit f558739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useFetch/index.ts
Expand Up @@ -228,7 +228,7 @@ function isAbsoluteURL(url: string) {

function headersToObject(headers: HeadersInit | undefined) {
if (typeof Headers !== 'undefined' && headers instanceof Headers)
return Object.fromEntries([...headers.entries()])
return Object.fromEntries(headers.entries())
return headers
}

Expand Down

0 comments on commit f558739

Please sign in to comment.