소스 검색

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 {


불러오는 중...
취소
저장