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 (vueuse#3660)
  • Loading branch information
BlackCrowxyz authored and noook committed Mar 26, 2024
1 parent 6cda3c2 commit e8eb389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useFetch/index.ts
Original file line number Diff line number Diff line change
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 e8eb389

Please sign in to comment.