Permalink
Browse files

http: use `self` insted of `this`

  • Loading branch information...
1 parent 3452477 commit baebd30eeec84d73617183be4b5be92557518d6c @koichik koichik committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http.js
View
@@ -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

0 comments on commit baebd30

Please sign in to comment.