This commit is contained in:
Ayush Gupta
2012-11-20 12:04:10 +05:30
parent 9b58ed5430
commit fc320397e9

View File

@@ -572,6 +572,7 @@
param = _ref[_i]; param = _ref[_i];
if (param.paramType === 'path') { if (param.paramType === 'path') {
if (args[param.name]) { if (args[param.name]) {
url = url.replace(/{id.*/, '{id}');
url = url.replace("{" + param.name + "}", encodeURIComponent(args[param.name])); url = url.replace("{" + param.name + "}", encodeURIComponent(args[param.name]));
delete args[param.name]; delete args[param.name];
} else { } else {