From da661827bf82ba581447a2ef38a4fd9a10ee0e9a Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Mon, 22 Sep 2014 21:55:48 -0700 Subject: [PATCH] fix for #596 --- dist/lib/swagger-client.js | 4 +++- lib/swagger-client.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/lib/swagger-client.js b/dist/lib/swagger-client.js index 36d38e08..eedb394f 100644 --- a/dist/lib/swagger-client.js +++ b/dist/lib/swagger-client.js @@ -245,7 +245,7 @@ SwaggerClient.prototype.build = function() { } }; var e = (typeof window !== 'undefined' ? window : exports); - e.authorizations.apply(obj); + var status = e.authorizations.apply(obj); new SwaggerHttp().execute(obj); return this; }; @@ -626,6 +626,8 @@ Operation.prototype.execute = function(arg1, arg2, arg3, arg4, parent) { else if (param.in === 'query') { if(querystring === '') querystring += '?'; + else + querystring += '&'; if(typeof param.collectionFormat !== 'undefined') { var qp = args[param.name]; if(Array.isArray(qp)) diff --git a/lib/swagger-client.js b/lib/swagger-client.js index 36d38e08..eedb394f 100644 --- a/lib/swagger-client.js +++ b/lib/swagger-client.js @@ -245,7 +245,7 @@ SwaggerClient.prototype.build = function() { } }; var e = (typeof window !== 'undefined' ? window : exports); - e.authorizations.apply(obj); + var status = e.authorizations.apply(obj); new SwaggerHttp().execute(obj); return this; }; @@ -626,6 +626,8 @@ Operation.prototype.execute = function(arg1, arg2, arg3, arg4, parent) { else if (param.in === 'query') { if(querystring === '') querystring += '?'; + else + querystring += '&'; if(typeof param.collectionFormat !== 'undefined') { var qp = args[param.name]; if(Array.isArray(qp))