Skip to content

Commit c04b81c

Browse files
authored
Merge pull request swagger-api#2529 from swagger-api/issue-2528
removed blob special logic for strings
2 parents 2351583 + 3c0fac2 commit c04b81c

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

dist/swagger-ui.js

Lines changed: 2 additions & 12 deletions
Large diffs are not rendered by default.

dist/swagger-ui.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
],
1010
"description": "Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
11-
"version": "2.2.6",
11+
"version": "2.2.7",
1212
"homepage": "http://swagger.io",
1313
"license": "Apache-2.0",
1414
"main": "dist/swagger-ui.js",

src/main/javascript/view/OperationView.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -672,17 +672,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
672672
contentType = contentType.split(';')[0].trim();
673673
}
674674
}
675-
if(contentType) {
676-
if(typeof content === 'string') {
677-
var arrayBuffer = new ArrayBuffer(content.length);
678-
var uint8Array = new Uint8Array(arrayBuffer);
679-
for (var i = 0; i < content.length; i++) {
680-
uint8Array[i] = content.charCodeAt(i);
681-
}
682675

683-
content = new Blob([uint8Array], { type: contentType });
684-
}
685-
}
686676
$('.response_body', $(this.el)).removeClass('json');
687677
$('.response_body', $(this.el)).removeClass('xml');
688678

0 commit comments

Comments
 (0)