From a03075eb041c412b117261be02a3e948f00d376a Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Thu, 29 Jan 2015 20:07:34 -0800 Subject: [PATCH] updated lib to address content types --- dist/lib/swagger-client.js | 2 +- lib/swagger-client.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/lib/swagger-client.js b/dist/lib/swagger-client.js index 7f7320a5..05a89263 100644 --- a/dist/lib/swagger-client.js +++ b/dist/lib/swagger-client.js @@ -2173,8 +2173,8 @@ Operation.prototype.execute = function(arg1, arg2, arg3, arg4, parent) { fail(message); return; } - var headers = this.getHeaderParams(args); + headers = this.setContentTypes(args, opts); var body = this.getBody(headers, args); var url = this.urlify(args); diff --git a/lib/swagger-client.js b/lib/swagger-client.js index 7f7320a5..05a89263 100644 --- a/lib/swagger-client.js +++ b/lib/swagger-client.js @@ -2173,8 +2173,8 @@ Operation.prototype.execute = function(arg1, arg2, arg3, arg4, parent) { fail(message); return; } - var headers = this.getHeaderParams(args); + headers = this.setContentTypes(args, opts); var body = this.getBody(headers, args); var url = this.urlify(args);