Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: not sending form urlencoded properly in JS fetch snippets#218

Merged
reynolek merged 2 commits intoKong:masterKong/httpsnippet:masterfrom
erunion:fix/not-sending-form-urlencoded-properlyerunion/httpsnippet:fix/not-sending-form-urlencoded-properlyCopy head branch name to clipboard
Sep 3, 2021
Merged

fix: not sending form urlencoded properly in JS fetch snippets#218
reynolek merged 2 commits intoKong:masterKong/httpsnippet:masterfrom
erunion:fix/not-sending-form-urlencoded-properlyerunion/httpsnippet:fix/not-sending-form-urlencoded-properlyCopy head branch name to clipboard

Conversation

@erunion
Copy link
Contributor

@erunion erunion commented May 13, 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().

@reynolek reynolek merged commit 6b85ba2 into Kong:master Sep 3, 2021
@erunion erunion deleted the fix/not-sending-form-urlencoded-properly branch September 4, 2021 03:52
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.