Skip to content

Commit

Permalink
Fix for node 0.8 with gzip compression. Thanks @vadimi
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jul 9, 2012
1 parent 8197a0c commit e1fe76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Static.prototype.gzip = function (data, callback) {
buffer.length = 0;
});

gzip.on('exit', function () {
gzip.on('close', function () {
if (err) return callback(err);

var size = 0
Expand Down

0 comments on commit e1fe76a

Please sign in to comment.