From c59b7b81b044454e1b490244842bfaf2e562a799 Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Thu, 15 Oct 2015 21:19:17 +0500 Subject: [PATCH] Add note about function in setImmediate --- index.js | 1 + 1 file changed, 1 insertion(+) 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); });