Skip to content

Commit

Permalink
fix(#1339): fix issue related where query args with % was dissappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Feb 5, 2024
1 parent 123bf19 commit a904672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/bruno-lang/v2/src/bruToJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const mapPairListToKeyValPairs = (pairList = [], parseEnabled = true) => {
}
return _.map(pairList[0], (pair) => {
let name = _.keys(pair)[0];
let value = decodeURIComponent(pair[name]);
let value = pair[name];

if (!parseEnabled) {
return {
Expand Down
4 changes: 2 additions & 2 deletions packages/bruno-lang/v2/src/jsonToBru.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ ${indentString(body.sparql)}
if (enabled(body.formUrlEncoded).length) {
bru += `\n${indentString(
enabled(body.formUrlEncoded)
.map((item) => `${item.name}: ${encodeURIComponent(item.value)}`)
.map((item) => `${item.name}: ${item.value}`)
.join('\n')
)}`;
}

if (disabled(body.formUrlEncoded).length) {
bru += `\n${indentString(
disabled(body.formUrlEncoded)
.map((item) => `~${item.name}: ${encodeURIComponent(item.value)}`)
.map((item) => `~${item.name}: ${item.value}`)
.join('\n')
)}`;
}
Expand Down

0 comments on commit a904672

Please sign in to comment.