diff --git a/examples/http/standalone-proxy.js b/examples/http/standalone-proxy.js index e39d4b072..9ffa81757 100644 --- a/examples/http/standalone-proxy.js +++ b/examples/http/standalone-proxy.js @@ -32,7 +32,7 @@ var util = require('util'), // // Http Server with proxyRequest Handler and Latency // -var proxy = new httpProxy.HttpProxy(); +var proxy = new httpProxy.RoutingProxy(); http.createServer(function (req, res) { var buffer = httpProxy.buffer(req); setTimeout(function() { diff --git a/examples/websocket/latent-websocket-proxy.js b/examples/websocket/latent-websocket-proxy.js index 85a06a917..3112f6bf8 100644 --- a/examples/websocket/latent-websocket-proxy.js +++ b/examples/websocket/latent-websocket-proxy.js @@ -27,7 +27,7 @@ var sys = require('sys'), http = require('http'), colors = require('colors'), - websocket = require('./../vendor/websocket'), + websocket = require('../../vendor/websocket'), httpProxy = require('../../lib/node-http-proxy'); try { diff --git a/examples/websocket/standalone-websocket-proxy.js b/examples/websocket/standalone-websocket-proxy.js index c17340509..bfbc25239 100644 --- a/examples/websocket/standalone-websocket-proxy.js +++ b/examples/websocket/standalone-websocket-proxy.js @@ -27,7 +27,7 @@ var sys = require('sys'), http = require('http'), colors = require('colors'), - websocket = require('./../vendor/websocket'), + websocket = require('../../vendor/websocket'), httpProxy = require('../../lib/node-http-proxy'); try { diff --git a/examples/websocket/websocket-proxy.js b/examples/websocket/websocket-proxy.js index a1e49c61b..975fab052 100644 --- a/examples/websocket/websocket-proxy.js +++ b/examples/websocket/websocket-proxy.js @@ -27,7 +27,7 @@ var sys = require('sys'), http = require('http'), colors = require('colors'), - websocket = require('./../vendor/websocket'), + websocket = require('../../vendor/websocket'), httpProxy = require('../../lib/node-http-proxy'); try {