瀏覽代碼

coffeescript compiled swagger.js for #91

bubble
Ayush Gupta 12 年之前
父節點
當前提交
a1337cf118
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      lib/swagger.js

+ 2
- 2
lib/swagger.js 查看文件

@@ -562,7 +562,7 @@
};

SwaggerOperation.prototype.urlify = function(args, includeApiKey) {
var param, queryParams, url, _i, _len, _ref;
var param, queryParams, reg, url, _i, _len, _ref;
if (includeApiKey == null) {
includeApiKey = true;
}
@@ -572,7 +572,7 @@
param = _ref[_i];
if (param.paramType === 'path') {
if (args[param.name]) {
reg = new RegExp('\{'+param.name+'[^\}]*\}', 'gi');
reg = new RegExp('\{' + param.name + '[^\}]*\}', 'gi');
url = url.replace(reg, encodeURIComponent(args[param.name]));
delete args[param.name];
} else {


Loading…
取消
儲存