From b690e1a369ffeb8e111f528b7bd23aa9530fb663 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Wed, 6 Aug 2014 15:21:34 -0700 Subject: [PATCH] partial fix for #107, set application/json to be default content-type --- lib/swagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swagger.js b/lib/swagger.js index 9648722e4..d745b1f04 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 consumes = null; + var consumes = "application/json"; var allDefinedParams = this.operation.parameters; var definedFormParams = [];