updated swagger-js

This commit is contained in:
Tony Tam
2014-02-19 11:49:15 -08:00
parent 7108afc191
commit aa848529c0
3 changed files with 6 additions and 6 deletions

4
dist/lib/swagger.js vendored
View File

@@ -1,5 +1,5 @@
// swagger.js
// version 2.0.17
// version 2.0.19
var __bind = function(fn, me){
return function(){
@@ -980,7 +980,7 @@ var SwaggerRequest = function(type, url, params, opts, successCallback, errorCal
}
for (name in this.headers)
myHeaders[name] = this.headers[name];
if (requestContentType)
if (requestContentType && body)
myHeaders["Content-Type"] = requestContentType;
if (responseContentType)
myHeaders["Accept"] = responseContentType;