Skip to content

Commit

Permalink
Merge 45a6dcc into dd5055d
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Jul 26, 2019
2 parents dd5055d + 45a6dcc commit 625bb25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Expand Up @@ -66,6 +66,12 @@ function compression (options) {
var _on = res.on
var _write = res.write

// prevent compression from being injected twice.
if (res._compressionEnabled === true) {
return;
}
res._compressionEnabled = true;

// flush
res.flush = function flush () {
if (stream) {
Expand Down

0 comments on commit 625bb25

Please sign in to comment.