express-hijackresponse
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -14,12 +14,6 @@ var Stream = require('stream').Stream; | ||
originalResponse.on('drain', function () { | ||
process.nextTick(function () { | ||
hijackedResponse.emit('drain'); | ||
}); | ||
}); | ||
hijackedResponse.readable = hijackedResponse.writable = true; | ||
hijackedResponse.write = function (chunk, encoding) { | ||
return write.call(originalResponse, chunk, encoding); | ||
write.call(originalResponse, chunk, encoding); | ||
}; | ||
@@ -88,3 +82,3 @@ | ||
} else { | ||
return write.call(this, chunk, encoding); | ||
write.call(this, chunk, encoding); | ||
} | ||
@@ -91,0 +85,0 @@ }; |
@@ -5,3 +5,3 @@ { | ||
"description": "Rewrite HTTP responses on their way out.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18690
338