mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-28 19:03:15 +01:00
fix(#1339): fix issue related where query args with % was dissappearing
This commit is contained in:
parent
123bf198a3
commit
a904672555
@ -105,7 +105,7 @@ const mapPairListToKeyValPairs = (pairList = [], parseEnabled = true) => {
|
|||||||
}
|
}
|
||||||
return _.map(pairList[0], (pair) => {
|
return _.map(pairList[0], (pair) => {
|
||||||
let name = _.keys(pair)[0];
|
let name = _.keys(pair)[0];
|
||||||
let value = decodeURIComponent(pair[name]);
|
let value = pair[name];
|
||||||
|
|
||||||
if (!parseEnabled) {
|
if (!parseEnabled) {
|
||||||
return {
|
return {
|
||||||
|
@ -163,7 +163,7 @@ ${indentString(body.sparql)}
|
|||||||
if (enabled(body.formUrlEncoded).length) {
|
if (enabled(body.formUrlEncoded).length) {
|
||||||
bru += `\n${indentString(
|
bru += `\n${indentString(
|
||||||
enabled(body.formUrlEncoded)
|
enabled(body.formUrlEncoded)
|
||||||
.map((item) => `${item.name}: ${encodeURIComponent(item.value)}`)
|
.map((item) => `${item.name}: ${item.value}`)
|
||||||
.join('\n')
|
.join('\n')
|
||||||
)}`;
|
)}`;
|
||||||
}
|
}
|
||||||
@ -171,7 +171,7 @@ ${indentString(body.sparql)}
|
|||||||
if (disabled(body.formUrlEncoded).length) {
|
if (disabled(body.formUrlEncoded).length) {
|
||||||
bru += `\n${indentString(
|
bru += `\n${indentString(
|
||||||
disabled(body.formUrlEncoded)
|
disabled(body.formUrlEncoded)
|
||||||
.map((item) => `~${item.name}: ${encodeURIComponent(item.value)}`)
|
.map((item) => `~${item.name}: ${item.value}`)
|
||||||
.join('\n')
|
.join('\n')
|
||||||
)}`;
|
)}`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user