-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When init.headers are native Headers, they won't get send #79
Comments
hey @FokkeZB ! Thanks for reporting that. |
Hey @lquixada - this is indeed happening there as well: Sandbox: https://codesandbox.io/s/determined-cdn-7k3gx?file=/src/index.js |
Hopefully they will handle this issue! Closing this one. |
Hope so! Reported at JakeChampion/fetch#860 |
When
options.headers
already is a nativeHeaders
object, this will lead to an emptythis.headers
:cross-fetch/dist/browser-ponyfill.js
Lines 346 to 348 in 2257827
This is because the
instanceof
check here is done against the polyfil:cross-fetch/dist/browser-ponyfill.js
Lines 93 to 96 in 2257827
We should either not override
Headers
if it already exists, or keep a reference to the original and include it in theinstanceof
check as well.The text was updated successfully, but these errors were encountered: