Skip to content

Commit aa84852

Browse files
committed
updated swagger-js
1 parent 7108afc commit aa84852

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/lib/swagger.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swagger.js
2-
// version 2.0.17
2+
// version 2.0.19
33

44
var __bind = function(fn, me){
55
return function(){
@@ -980,7 +980,7 @@ var SwaggerRequest = function(type, url, params, opts, successCallback, errorCal
980980
}
981981
for (name in this.headers)
982982
myHeaders[name] = this.headers[name];
983-
if (requestContentType)
983+
if (requestContentType && body)
984984
myHeaders["Content-Type"] = requestContentType;
985985
if (responseContentType)
986986
myHeaders["Accept"] = responseContentType;

lib/swagger.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// swagger.js
2-
// version 2.0.17
2+
// version 2.0.19
33

44
var __bind = function(fn, me){
55
return function(){
@@ -980,7 +980,7 @@ var SwaggerRequest = function(type, url, params, opts, successCallback, errorCal
980980
}
981981
for (name in this.headers)
982982
myHeaders[name] = this.headers[name];
983-
if (requestContentType)
983+
if (requestContentType && body)
984984
myHeaders["Content-Type"] = requestContentType;
985985
if (responseContentType)
986986
myHeaders["Accept"] = responseContentType;

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-ui",
3-
"version": "2.0.11",
3+
"version": "2.0.12",
44
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
55
"scripts": {
66
"build": "PATH=$PATH:./node_modules/.bin cake dist",
@@ -19,7 +19,7 @@
1919
"readmeFilename": "README.md",
2020
"dependencies": {
2121
"coffee-script": "~1.5.0",
22-
"swagger-client": "2.0.18",
22+
"swagger-client": "2.0.19",
2323
"handlebars": "~1.0.10",
2424
"less": "~1.4.2"
2525
}

0 commit comments

Comments
 (0)