diff --git a/index.js b/index.js index 6008dcb..dec2829 100644 --- a/index.js +++ b/index.js @@ -53,6 +53,7 @@ function requestAsEventEmitter(opts) { return; } + // do not write ee.bind(...) instead of function - it will break gzip in Node.js 0.10 setImmediate(function () { ee.emit('response', typeof unzipResponse === 'function' ? unzipResponse(res) : res); });