Skip to content
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

fix: handle fetch headers that are Headers objects #6320

Merged
merged 3 commits into from
Feb 22, 2023
Merged

Conversation

jcesarmobile
Copy link
Member

@jcesarmobile jcesarmobile commented Feb 22, 2023

If the fetch call uses headers created with the Headers interface, they can't be handled by http plugin since they are not serializable on iOS and are serializable on Android but are not proper headers.

This PR checks if the headers are a instance of Headers and use its entries to get the headers javascript object.

@jcesarmobile jcesarmobile merged commit cb00e49 into main Feb 22, 2023
@jcesarmobile jcesarmobile deleted the fix-headers branch February 22, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants