merged #1238
This commit is contained in:
@@ -629,10 +629,10 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
pre = $('<audio controls>').append($('<source>').attr('src', url).attr('type', contentType));
|
pre = $('<audio controls>').append($('<source>').attr('src', url).attr('type', contentType));
|
||||||
|
|
||||||
// Download
|
// Download
|
||||||
} else if ((headers['Content-Disposition'] && headers['Content-Disposition'].test(/attachment/)) ||
|
} else if (headers['Content-Disposition'] && (/attachment/).test(headers['Content-Disposition']) ||
|
||||||
(headers['content-disposition'] && headers['content-disposition'].test(/attachment/)) ||
|
headers['content-disposition'] && (/attachment/).test(headers['content-disposition']) ||
|
||||||
(headers['Content-Description'] && headers['Content-Description'].test(/File Transfer/)) ||
|
headers['Content-Description'] && (/File Transfer/).test(headers['Content-Description']) ||
|
||||||
(headers['content-description'] && headers['content-description'].test(/File Transfer/))) {
|
headers['content-description'] && (/File Transfer/).test(headers['content-description'])) {
|
||||||
|
|
||||||
if ('Blob' in window) {
|
if ('Blob' in window) {
|
||||||
var type = contentType || 'text/html';
|
var type = contentType || 'text/html';
|
||||||
|
|||||||
Reference in New Issue
Block a user