fix(#1339): fix issue related where query args with % was dissappearing

This commit is contained in:
Anoop M D 2024-02-06 00:36:30 +05:30
parent 123bf198a3
commit a904672555
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -163,7 +163,7 @@ ${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')
)}`;
}
@ -171,7 +171,7 @@ ${indentString(body.sparql)}
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')
)}`;
}