Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tests] throw error when no options, ALL TESTS PASSING! YAY
  • Loading branch information
cronopio committed Oct 10, 2013
1 parent c65ffbb commit 86750c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http-proxy.js
Expand Up @@ -20,7 +20,7 @@ var http = require('http'),
*/

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

return new httpProxy.Server(options);
};
Expand Down

0 comments on commit 86750c7

Please sign in to comment.