We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f223ce8 commit 0532995Copy full SHA for 0532995
lib/node-http-proxy/routing-proxy.js
@@ -120,7 +120,11 @@ RoutingProxy.prototype.add = function (options) {
120
// for the specified `options.host` and `options.port` (if they exist).
121
//
122
RoutingProxy.prototype.remove = function (options) {
123
- var key = this._getKey(options);
+ var key = this._getKey(options),
124
+ proxy = this.proxies[key];
125
+
126
+ delete this.proxies[key];
127
+ return proxy;
128
};
129
130
0 commit comments