Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
davehagler committed Feb 24, 2016
1 parent 5809c87 commit a00e6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/javascript/view/OperationView.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
var disposition = headers['content-disposition'] || headers['Content-Disposition'];
if(typeof disposition !== 'undefined') {
var responseFilename = /filename=([^;]*);?/.exec(disposition);
if(responseFilename != null && responseFilename.length > 1) {
if(responseFilename !== null && responseFilename.length > 1) {
download = responseFilename[1];
}
}
Expand Down

0 comments on commit a00e6e8

Please sign in to comment.