Permalink
Browse files

console - not urlencoding PATH parameters when sending request throug…

…h restx console

This fixes #257
  • Loading branch information...
fcamblor committed Aug 22, 2017
1 parent a5770d8 commit 8c3b7817982dd64ac7f23b56eb17aa0f946bd947
@@ -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));

0 comments on commit 8c3b781

Please sign in to comment.