File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21583,10 +21583,10 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
2158321583 pre = $('<audio controls>').append($('<source>').attr('src', url).attr('type', contentType));
2158421584
2158521585 // Download
21586- } else if (( headers['Content-Disposition'] && headers['Content-Disposition'].test(/attachment/) ) ||
21587- ( headers['content-disposition'] && headers['content-disposition'].test(/attachment/) ) ||
21588- ( headers['Content-Description'] && headers['Content-Description'].test(/File Transfer/) ) ||
21589- ( headers['content-description'] && headers['content-description'].test(/File Transfer/) )) {
21586+ } else if (headers['Content-Disposition'] && (/attachment/).test( headers['Content-Disposition']) ||
21587+ headers['content-disposition'] && (/attachment/).test( headers['content-disposition']) ||
21588+ headers['Content-Description'] && (/File Transfer/).test( headers['Content-Description']) ||
21589+ headers['content-description'] && (/File Transfer/).test( headers['content-description'])) {
2159021590
2159121591 if ('Blob' in window) {
2159221592 var type = contentType || 'text/html';
You can’t perform that action at this time.
0 commit comments