Commit d2b0e439 authored by indexzero's avatar indexzero

[api breaking] Begin refactor to optimize node-http-proxy by managing one...

[api breaking] Begin refactor to optimize node-http-proxy by managing one instance of HttpProxy per `host:port` location
parent db10c4af
This diff is collapsed.
This diff is collapsed.
......@@ -81,7 +81,9 @@ util.inherits(ProxyTable, events.EventEmitter);
// Sets the host-based routes to be used by this instance.
//
ProxyTable.prototype.setRoutes = function (router) {
if (!router) throw new Error('Cannot update ProxyTable routes without router.');
if (!router) {
throw new Error('Cannot update ProxyTable routes without router.');
}
this.router = router;
......
var RoutingProxy = exports.RoutingProxy = function () {
};
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment