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;

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;

View File

@@ -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",
@@ -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"
}