We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65ffbb commit 86750c7Copy full SHA for 86750c7
lib/http-proxy.js
@@ -20,7 +20,7 @@ var http = require('http'),
20
*/
21
22
proxy.createProxyServer = proxy.createServer = function createProxyServer(options) {
23
- /* if(!options) {
+ if(!options) {
24
throw new Error([
25
"`options` is needed and it must have the following layout:",
26
" ",
@@ -37,7 +37,7 @@ proxy.createProxyServer = proxy.createServer = function createProxyServer(option
37
" `options.target and `options.forward` cannot be ",
38
" both missing "
39
].join("\n"));
40
- } */
+ }
41
42
return new httpProxy.Server(options);
43
};
0 commit comments