Browse Source

Add note about function in setImmediate

http2
Vsevolod Strukchinsky 9 years ago
parent
commit
c59b7b81b0
  1. 1
      index.js

1
index.js

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

Loading…
Cancel
Save