Skip to content

Fix encoding when generating HTTP code snippets #455

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

Merged
merged 2 commits into from
Feb 19, 2021
Merged

Fix encoding when generating HTTP code snippets #455

merged 2 commits into from
Feb 19, 2021

Conversation

sausa28
Copy link

@sausa28 sausa28 commented Feb 12, 2021

This PR fixes #454, to fix HTTP code snippets built using the x-www-form-urlencoded builder.

I have added a new function in util.js specifically to uri-encode the key-values, and updated the http unit tests to match the expected behaviour. I welcome any feedback on the implementation!

@webholik webholik merged commit 5e6ee15 into postmanlabs:develop Feb 19, 2021
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.

HTTP Code Generation does not handle x-www-form-urlencoded content correctly
2 participants