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: not sending form urlencoded properly in JS fetch snippets #43

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

erunion
Copy link
Member

@erunion erunion commented Apr 20, 2021

JS fetch body needs to be a string, and we were sending objects on x-www-url-formencoded requests. This fixes that by wrapping those objects in new URLSearchParams.

@erunion erunion added the bug Something isn't working label Apr 20, 2021
@erunion
Copy link
Member Author

erunion commented Apr 20, 2021

@jbwyme Heads up that this'll fix the issue you're seeing on your Track Event docs. This should hopefully make it out to production later this week or next Tuesday.

@erunion erunion merged commit 86f9dcd into master Apr 20, 2021
@erunion erunion deleted the fix/not-sending-form-urlencoded-properly branch April 20, 2021 20:59
@jbwyme
Copy link

jbwyme commented Apr 20, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants