Skip to content

Commit

Permalink
updated swagger-js
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Feb 19, 2014
1 parent 7108afc commit aa84852
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/lib/swagger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swagger.js
// version 2.0.17
// version 2.0.19

var __bind = function(fn, me){
return function(){
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions lib/swagger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swagger.js
// version 2.0.17
// version 2.0.19

var __bind = function(fn, me){
return function(){
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swagger-ui",
"version": "2.0.11",
"version": "2.0.12",
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"scripts": {
"build": "PATH=$PATH:./node_modules/.bin cake dist",
Expand All @@ -19,7 +19,7 @@
"readmeFilename": "README.md",
"dependencies": {
"coffee-script": "~1.5.0",
"swagger-client": "2.0.18",
"swagger-client": "2.0.19",
"handlebars": "~1.0.10",
"less": "~1.4.2"
}
Expand Down

0 comments on commit aa84852

Please # to comment.