Browse Source

http: use `self` insted of `this`

v0.7.4-release
koichik 13 years ago
parent
commit
baebd30eee
  1. 2
      lib/http.js

2
lib/http.js

@ -903,7 +903,7 @@ function Agent(options) {
self.requests[name].shift().onSocket(socket);
if (self.requests[name].length === 0) {
// don't leak
delete this.requests[name];
delete self.requests[name];
}
} else {
// If there are no pending requests just destroy the

Loading…
Cancel
Save