mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[test] Update tests to use localhost
This commit is contained in:
parent
b4ac4d441f
commit
a1cdf005b9
@ -68,8 +68,8 @@ vows.describe('node-http-proxy/websocket/' + wsprotocol).addBatch({
|
|||||||
//
|
//
|
||||||
// Setup the web socket against our proxy
|
// Setup the web socket against our proxy
|
||||||
//
|
//
|
||||||
var ws = new websocket.WebSocket(wsprotocol + '://home.devjitsu.com:8131/socket.io/websocket/', 'borf', {
|
var ws = new websocket.WebSocket(wsprotocol + '://localhost:8131/socket.io/websocket/', 'borf', {
|
||||||
origin: protocol + '://home.devjitsu.com'
|
origin: protocol + '://localhost'
|
||||||
});
|
});
|
||||||
|
|
||||||
ws.on('wsupgrade', function (req, res) {
|
ws.on('wsupgrade', function (req, res) {
|
||||||
@ -108,8 +108,8 @@ vows.describe('node-http-proxy/websocket/' + wsprotocol).addBatch({
|
|||||||
//
|
//
|
||||||
// Setup the web socket against our proxy
|
// Setup the web socket against our proxy
|
||||||
//
|
//
|
||||||
var ws = new websocket.WebSocket(wsprotocol + '://home.devjitsu.com:8133/socket.io/websocket/', 'borf', {
|
var ws = new websocket.WebSocket(wsprotocol + '://localhost:8133/socket.io/websocket/', 'borf', {
|
||||||
origin: protocol + '://home.devjitsu.com'
|
origin: protocol + '://localhost'
|
||||||
});
|
});
|
||||||
|
|
||||||
ws.on('wsupgrade', function (req, res) {
|
ws.on('wsupgrade', function (req, res) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user