From 64298254049787b00d1ae748c7806d25947a15ea Mon Sep 17 00:00:00 2001 From: Ozan Turgut Date: Mon, 4 Aug 2014 10:01:54 -0700 Subject: [PATCH] Fixed mismatched var names (consumes vs contentType) Consumes was not defined in the scope but use, where as content- Type was defined but not used. --- lib/swagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swagger.js b/lib/swagger.js index 0a10dd6f4..9648722e4 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -1191,7 +1191,7 @@ var SwaggerRequest = function(type, url, params, opts, successCallback, errorCal SwaggerRequest.prototype.setHeaders = function(params, operation) { // default type var accepts = "application/json"; - var contentType = null; + var consumes = null; var allDefinedParams = this.operation.parameters; var definedFormParams = [];