Skip to content

Commit

Permalink
partial fix for #107, set application/json to be default content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Aug 6, 2014
1 parent 140e912 commit b690e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit b690e1a

Please sign in to comment.