[fix] pass proper options object that extend the global options and parse the per proxy args into options. fixes #510

This commit is contained in:
Jarrett Cruger 2013-11-05 16:30:39 -05:00
parent dda6f7a45a
commit b8c6397a94

View File

@ -73,7 +73,7 @@ function createRightProxy(type) {
* refer to the connection socket * refer to the connection socket
* pass(req, socket, options, head) * pass(req, socket, options, head)
*/ */
if(passes[i](req, res, this.options, head, cbl ? false : this, cbl)) { // passes can return a truthy value to halt the loop if(passes[i](req, res, options, head, cbl ? false : this, cbl)) { // passes can return a truthy value to halt the loop
break; break;
} }
} }