Skip to content

Commit 8c3b781

Browse files
committed
console - not urlencoding PATH parameters when sending request through restx console
This fixes #257
1 parent a5770d8 commit 8c3b781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restx-apidocs/src/main/resources/restx/apidocs/js/controllers/OperationController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ adminApp.controller('OperationController', function OperationController(
5252
var queryParams = [];
5353
_.each($scope.operation.parameters, function(p) {
5454
if (p.paramType == 'path') {
55-
path = path.replace('{' + p.name + '}', encodeURIComponent(p.value));
55+
path = path.replace('{' + p.name + '}', p.value);
5656
} else if (p.paramType == 'query') {
5757
if (p.value !== undefined && p.value !== '') {
5858
queryParams.push(encodeURIComponent(p.name) + '=' + encodeURIComponent(p.value));

0 commit comments

Comments
 (0)