Commit 15c18b61 authored by Marak Squires's avatar Marak Squires

fixed additional port / server mismatches for new api

parent bde98f48
......@@ -25,7 +25,6 @@
*/
var sys = require('sys'),
eyes = require('eyes'),
http = require('http'),
events = require('events');
......@@ -74,7 +73,7 @@ exports.HttpProxy.prototype = {
callback(req, res, self);
}
else {
self.proxyRequest(server, port, req, res);
self.proxyRequest(port, server, req, res);
}
});
......@@ -114,7 +113,7 @@ exports.HttpProxy.prototype = {
delete this.events[req];
},
proxyRequest: function (server, port, req, res) {
proxyRequest: function (port, server, req, res) {
// Remark: nodeProxy.body exists solely for testability
this.body = '';
var self = this;
......
......@@ -46,7 +46,7 @@ var startProxyServer = function (port, server, proxy) {
//
// Creates the reverse proxy server with a specified latency
//
var startLatentProxyServer = function (server, port, proxy, latency) {
var startLatentProxyServer = function (port, server, proxy, latency) {
// Initialize the nodeProxy and start proxying the request
var proxyServer = proxy.createServer(function (req, res, proxy) {
setTimeout(function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment