mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[tests] throw error when no options, ALL TESTS PASSING! YAY
This commit is contained in:
parent
c65ffbb976
commit
86750c7e59
@ -20,7 +20,7 @@ var http = require('http'),
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
proxy.createProxyServer = proxy.createServer = function createProxyServer(options) {
|
proxy.createProxyServer = proxy.createServer = function createProxyServer(options) {
|
||||||
/* if(!options) {
|
if(!options) {
|
||||||
throw new Error([
|
throw new Error([
|
||||||
"`options` is needed and it must have the following layout:",
|
"`options` is needed and it must have the following layout:",
|
||||||
" ",
|
" ",
|
||||||
@ -37,7 +37,7 @@ proxy.createProxyServer = proxy.createServer = function createProxyServer(option
|
|||||||
" `options.target and `options.forward` cannot be ",
|
" `options.target and `options.forward` cannot be ",
|
||||||
" both missing "
|
" both missing "
|
||||||
].join("\n"));
|
].join("\n"));
|
||||||
} */
|
}
|
||||||
|
|
||||||
return new httpProxy.Server(options);
|
return new httpProxy.Server(options);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user