[BUG] - URLSearchParams unsupported on IOS
MinisculeGirraffe opened this issue · 2 comments
Describe the bug
Unable to preform any POST requests on IOS devices due to URLSearchParams being unsupported. GET requests are still able to be preformed due to the API key being embedded in the headers.
To Reproduce
Utilize any POST requests in the library
Expected behavior
Parameters should be URL encoded when sent from an IOS device
See screenshot sent from an IOS device using the below code
Desktop (please complete the following information where applicable:
- OS: iOS
- Language Version NodeJS 12
- Browser Stock browser
- Version Any
Additional context
The fix for this is to use a generic polyfill to encode the URL params.
I submitted PR 373 to fix this issue. Confirmed on my IOS devices that this resolves the error
@MinisculeGirraffe Thanks for fixing this! We created a new milestone for v0.5.0 with your change and a few others which will go out by the end of the week.