Skip to content

Fix encoding when generating HTTP code snippets#455

Merged
webholik merged 2 commits intopostmanlabs:developfrom
sausa28:develop
Feb 19, 2021
Merged

Fix encoding when generating HTTP code snippets#455
webholik merged 2 commits intopostmanlabs:developfrom
sausa28:develop

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