@@ -51,15 +51,15 @@ var options = helpers.parseProtocol(),
5151vows . describe ( 'node-http-proxy/http-proxy/' + testName ) . addBatch ( {
5252 "When using server created by httpProxy.createServer()" : {
5353 "with no latency" : {
54- "and a valid target server" : runner . assertProxied ( 'localhost' , 8080 , 8081 , function ( callback ) {
54+ "and a valid target server" : runner . assertProxied ( 'localhost' , 8080 , 8081 , false , false , function ( callback ) {
5555 runner . startProxyServer ( 8080 , 8081 , 'localhost' , callback ) ;
5656 } ) ,
5757 "and without a valid target server" : runner . assertResponseCode ( 8082 , 500 , function ( callback ) {
5858 runner . startProxyServer ( 8082 , 9000 , 'localhost' , callback ) ;
5959 } )
6060 } ,
6161 "with latency" : {
62- "and a valid target server" : runner . assertProxied ( 'localhost' , 8083 , 8084 , function ( callback ) {
62+ "and a valid target server" : runner . assertProxied ( 'localhost' , 8083 , 8084 , false , false , function ( callback ) {
6363 runner . startLatentProxyServer ( 8083 , 8084 , 'localhost' , 1000 , callback ) ;
6464 } ) ,
6565 "and without a valid target server" : runner . assertResponseCode ( 8085 , 500 , function ( callback ) {
@@ -71,13 +71,13 @@ vows.describe('node-http-proxy/http-proxy/' + testName).addBatch({
7171 runner . startTargetServer ( 8300 , 'forward proxy' , this . callback ) ;
7272 } ,
7373 "with no latency" : {
74- "and a valid target server" : runner . assertProxied ( 'localhost' , 8120 , 8121 , function ( callback ) {
74+ "and a valid target server" : runner . assertProxied ( 'localhost' , 8120 , 8121 , false , false , function ( callback ) {
7575 runner . startProxyServerWithForwarding ( 8120 , 8121 , 'localhost' , forwardOptions , callback ) ;
7676 } ) ,
7777 "and also a valid target server" : runner . assertHeaders ( 8122 , "x-forwarded-for" , function ( callback ) {
7878 runner . startProxyServerWithForwarding ( 8122 , 8123 , 'localhost' , forwardOptions , callback ) ;
7979 } ) ,
80- "and without a valid forward server" : runner . assertProxied ( 'localhost' , 8124 , 8125 , function ( callback ) {
80+ "and without a valid forward server" : runner . assertProxied ( 'localhost' , 8124 , 8125 , false , false , function ( callback ) {
8181 runner . startProxyServerWithForwarding ( 8124 , 8125 , 'localhost' , badForwardOptions , callback ) ;
8282 } )
8383 }
0 commit comments