Browse Source

closes #46

bubble
Ayush Gupta 12 years ago
parent
commit
4570b99136
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/swagger.js

+ 2
- 2
lib/swagger.js View File

@@ -354,9 +354,9 @@
args[this.apiKeyName] = this.resource.api.api_key; args[this.apiKeyName] = this.resource.api.api_key;
} }
if (this.supportHeaderParams()) { if (this.supportHeaderParams()) {
queryParams = jQuery.param(this.getQueryParams(args));
queryParams = jQuery.param(this.getQueryParams(args, includeApiKey));
} else { } else {
queryParams = jQuery.param(this.getQueryAndHeaderParams(args));
queryParams = jQuery.param(this.getQueryAndHeaderParams(args, includeApiKey));
} }
if ((queryParams != null) && queryParams.length > 0) { if ((queryParams != null) && queryParams.length > 0) {
url += "?" + queryParams; url += "?" + queryParams;


Loading…
Cancel
Save