You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
We are facing an issue when migrating from node-fetch to @zeit/fetch due to the fact that some of the properties in provided opts object are mutated before calling the decorated fetch function.
We are having issues mainly with headers, but I see the body is overwritten too.
Maybe it would be a good idea to copy provided opts and mutate the copy before passing to the wrapped fetch instead? It would remove these unexpected side effects.
I think I could try to provide the fix if you are ok with it.
The text was updated successfully, but these errors were encountered:
We are facing an issue when migrating from
node-fetch
to@zeit/fetch
due to the fact that some of the properties in providedopts
object are mutated before calling the decoratedfetch
function.We are having issues mainly with headers, but I see the body is overwritten too.
Maybe it would be a good idea to copy provided opts and mutate the copy before passing to the wrapped
fetch
instead? It would remove these unexpected side effects.I think I could try to provide the fix if you are ok with it.
The text was updated successfully, but these errors were encountered: