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(ios): crash when http headers contain numbers #6251

Merged
merged 2 commits into from
Jan 26, 2023
Merged

Conversation

jcesarmobile
Copy link
Member

Stringify the headers so the native side only gets strings as native headers can only be strings.

closes #6202

@davy-ikv
Copy link

This change breaks passing headers in iOS

028c556#diff-73da2144bc5fefb384b6fc1501a8efbabac7cfdf2faa411b68cdd113f53d884dL430-R432

JSON.stringify headers makes headers become a String, but in native part of iOS, it expect headers is a hash table ([String: String])

@ionic-team ionic-team locked as off-topic and limited conversation to collaborators Feb 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: CapacitorHTTP crashes when a header value is given as number on iOS
4 participants