Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix #3179 HTTP memory leak using ClientRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo authored and isaacs committed May 3, 2012
1 parent c9be1d5 commit 75f2365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit 75f2365

Please sign in to comment.