Browse Source

Fix #3179 HTTP memory leak using ClientRequest.

v0.8.7-release
vvo 13 years ago
committed by isaacs
parent
commit
75f2365558
  1. 2
      lib/http.js

2
lib/http.js

@ -1014,7 +1014,7 @@ function ClientRequest(options, cb) {
var method = self.method = (options.method || 'GET').toUpperCase();
self.path = options.path || '/';
if (cb) {
self.on('response', cb);
self.once('response', cb);
}
if (!Array.isArray(options.headers)) {

Loading…
Cancel
Save