Skip to content

Commit

Permalink
fix: request options merge via defu
Browse files Browse the repository at this point in the history
  • Loading branch information
Diizzayy committed Nov 5, 2024
1 parent b9f0543 commit 0b1a8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default defineNuxtPlugin(() => {
}

if (reqOpts?.token) { delete reqOpts.token }
return defu(req, reqOpts)
return defu(reqOpts, req)
},
...v?.fetchOptions
})
Expand Down

2 comments on commit 0b1a8fe

@G3z
Copy link

@G3z G3z commented on 0b1a8fe Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this breaks my App

@Diizzayy
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@G3z Sorry to hear that, can you create an issue with additional details? I'll have a look at it ASAP

Please sign in to comment.