Skip to content

Commit 86750c7

Browse files
committed
[tests] throw error when no options, ALL TESTS PASSING! YAY
1 parent c65ffbb commit 86750c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/http-proxy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var http = require('http'),
2020
*/
2121

2222
proxy.createProxyServer = proxy.createServer = function createProxyServer(options) {
23-
/* if(!options) {
23+
if(!options) {
2424
throw new Error([
2525
"`options` is needed and it must have the following layout:",
2626
" ",
@@ -37,7 +37,7 @@ proxy.createProxyServer = proxy.createServer = function createProxyServer(option
3737
" `options.target and `options.forward` cannot be ",
3838
" both missing "
3939
].join("\n"));
40-
} */
40+
}
4141

4242
return new httpProxy.Server(options);
4343
};

0 commit comments

Comments
 (0)