mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] closes #547
This commit is contained in:
parent
0ba4fa8e5e
commit
4351ed1c86
@ -8,6 +8,13 @@ var http = require('http'),
|
||||
*/
|
||||
module.exports = httpProxy.Server;
|
||||
|
||||
module.exports.createProxy = function(options) {
|
||||
return {
|
||||
web: httpProxy.createRightProxy('web')(options),
|
||||
ws: httpProxy.createRightProxy('ws')(options)
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the proxy server.
|
||||
*
|
||||
|
||||
@ -80,7 +80,7 @@ function createRightProxy(type) {
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
httpProxy.createRightProxy = createRightProxy;
|
||||
|
||||
function ProxyServer(options) {
|
||||
EE3.call(this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user