Skip to content

Commit 549360a

Browse files
committed
[examples] More fixes to examples.
1 parent 8fc8d96 commit 549360a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/http/standalone-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var util = require('util'),
3232
//
3333
// Http Server with proxyRequest Handler and Latency
3434
//
35-
var proxy = new httpProxy.HttpProxy();
35+
var proxy = new httpProxy.RoutingProxy();
3636
http.createServer(function (req, res) {
3737
var buffer = httpProxy.buffer(req);
3838
setTimeout(function() {

examples/websocket/latent-websocket-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var sys = require('sys'),
2828
http = require('http'),
2929
colors = require('colors'),
30-
websocket = require('./../vendor/websocket'),
30+
websocket = require('../../vendor/websocket'),
3131
httpProxy = require('../../lib/node-http-proxy');
3232

3333
try {

examples/websocket/standalone-websocket-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var sys = require('sys'),
2828
http = require('http'),
2929
colors = require('colors'),
30-
websocket = require('./../vendor/websocket'),
30+
websocket = require('../../vendor/websocket'),
3131
httpProxy = require('../../lib/node-http-proxy');
3232

3333
try {

examples/websocket/websocket-proxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var sys = require('sys'),
2828
http = require('http'),
2929
colors = require('colors'),
30-
websocket = require('./../vendor/websocket'),
30+
websocket = require('../../vendor/websocket'),
3131
httpProxy = require('../../lib/node-http-proxy');
3232

3333
try {

0 commit comments

Comments
 (0)