Skip to content
Permalink
Browse files

[tests] throw error when no options, ALL TESTS PASSING! YAY

  • Loading branch information...
cronopio committed Oct 10, 2013
1 parent c65ffbb commit 86750c7e594c419dfae957aaf7e44e61e1d480e8
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/http-proxy.js
@@ -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:",
" ",
@@ -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);
};

0 comments on commit 86750c7

Please sign in to comment.
You can’t perform that action at this time.