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);