mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #246 from tellnes/proxy-remove
Implement RoutingProxy.prototype.remove
This commit is contained in:
commit
02b914d609
@ -120,7 +120,11 @@ RoutingProxy.prototype.add = function (options) {
|
|||||||
// for the specified `options.host` and `options.port` (if they exist).
|
// for the specified `options.host` and `options.port` (if they exist).
|
||||||
//
|
//
|
||||||
RoutingProxy.prototype.remove = function (options) {
|
RoutingProxy.prototype.remove = function (options) {
|
||||||
var key = this._getKey(options);
|
var key = this._getKey(options),
|
||||||
|
proxy = this.proxies[key];
|
||||||
|
|
||||||
|
delete this.proxies[key];
|
||||||
|
return proxy;
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user