Skip to content

Commit

Permalink
Switch back to hijackresponse and use { disableBackpressure: true }.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 15, 2016
1 parent c0fa4b7 commit 29d0733
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/processImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var Path = require('path'),
getFilterInfosAndTargetContentTypeFromQueryString = require('./getFilterInfosAndTargetContentTypeFromQueryString'),
mime = require('mime');

var hijackResponse = require('hijackresponse-nobackpressure');
var hijackResponse = require('hijackresponse');

var isImageByExtension = {};

Expand Down Expand Up @@ -223,7 +223,7 @@ module.exports = function (options) {
} else {
res.unhijack();
}
});
}, { disableBackpressure: true });
next();
} else {
next();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"createerror": "1.1.0",
"exif-reader": "1.0.0",
"gm": "1.19.0",
"hijackresponse-nobackpressure": "1.0.2-patch1",
"hijackresponse": "1.1.0",
"httperrors": "2.0.1",
"icc": "0.0.2",
"inkscape": "1.0.0",
Expand Down

0 comments on commit 29d0733

Please sign in to comment.