removed blob special logic for strings
This commit is contained in:
14
dist/swagger-ui.js
vendored
14
dist/swagger-ui.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -8,7 +8,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
|
||||
"version": "2.2.6",
|
||||
"version": "2.2.7",
|
||||
"homepage": "http://swagger.io",
|
||||
"license": "Apache-2.0",
|
||||
"main": "dist/swagger-ui.js",
|
||||
|
||||
@@ -672,17 +672,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
||||
contentType = contentType.split(';')[0].trim();
|
||||
}
|
||||
}
|
||||
if(contentType) {
|
||||
if(typeof content === 'string') {
|
||||
var arrayBuffer = new ArrayBuffer(content.length);
|
||||
var uint8Array = new Uint8Array(arrayBuffer);
|
||||
for (var i = 0; i < content.length; i++) {
|
||||
uint8Array[i] = content.charCodeAt(i);
|
||||
}
|
||||
|
||||
content = new Blob([uint8Array], { type: contentType });
|
||||
}
|
||||
}
|
||||
$('.response_body', $(this.el)).removeClass('json');
|
||||
$('.response_body', $(this.el)).removeClass('xml');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user