This commit is contained in:
Tony Tam
2015-05-08 13:29:47 -07:00
parent 97ed093e6e
commit 4365d34ee1
2 changed files with 5 additions and 5 deletions

8
dist/swagger-ui.js vendored
View File

@@ -21583,10 +21583,10 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
pre = $('<audio controls>').append($('<source>').attr('src', url).attr('type', contentType));
// Download
} else if ((headers['Content-Disposition'] && headers['Content-Disposition'].test(/attachment/)) ||
(headers['content-disposition'] && headers['content-disposition'].test(/attachment/)) ||
(headers['Content-Description'] && headers['Content-Description'].test(/File Transfer/)) ||
(headers['content-description'] && headers['content-description'].test(/File Transfer/))) {
} else if (headers['Content-Disposition'] && (/attachment/).test(headers['Content-Disposition']) ||
headers['content-disposition'] && (/attachment/).test(headers['content-disposition']) ||
headers['Content-Description'] && (/File Transfer/).test(headers['Content-Description']) ||
headers['content-description'] && (/File Transfer/).test(headers['content-description'])) {
if ('Blob' in window) {
var type = contentType || 'text/html';