Skip to content

Commit

Permalink
misc refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 24, 2011
1 parent 06fda62 commit aa68581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response.js
Expand Up @@ -214,7 +214,7 @@ res.download = function(path, filename, fn, fn2){
if (err) {
if (!sentHeader) self.removeHeader('Content-Disposition');
if (sentHeader) {
if (fn2) fn2(err);
fn2 && fn2(err);
} else if (fn) {
fn(err);
} else {
Expand Down

0 comments on commit aa68581

Please sign in to comment.