Skip to content

Commit

Permalink
console - not urlencoding PATH parameters when sending request throug…
Browse files Browse the repository at this point in the history
…h restx console

This fixes #257
  • Loading branch information
fcamblor committed Sep 10, 2017
1 parent a5770d8 commit 8c3b781
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -52,7 +52,7 @@ adminApp.controller('OperationController', function OperationController(
var queryParams = [];
_.each($scope.operation.parameters, function(p) {
if (p.paramType == 'path') {
path = path.replace('{' + p.name + '}', encodeURIComponent(p.value));
path = path.replace('{' + p.name + '}', p.value);
} else if (p.paramType == 'query') {
if (p.value !== undefined && p.value !== '') {
queryParams.push(encodeURIComponent(p.name) + '=' + encodeURIComponent(p.value));
Expand Down

0 comments on commit 8c3b781

Please sign in to comment.