Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
node-http-proxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
node-http-proxy
Commits
a1cdf005
Commit
a1cdf005
authored
May 23, 2011
by
indexzero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Update tests to use `localhost`
parent
b4ac4d44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/web-socket-proxy-test.js
test/web-socket-proxy-test.js
+4
-4
No files found.
test/web-socket-proxy-test.js
View file @
a1cdf005
...
...
@@ -68,8 +68,8 @@ vows.describe('node-http-proxy/websocket/' + wsprotocol).addBatch({
//
// Setup the web socket against our proxy
//
var
ws
=
new
websocket
.
WebSocket
(
wsprotocol
+
'
://
home.devjitsu.com
:8131/socket.io/websocket/
'
,
'
borf
'
,
{
origin
:
protocol
+
'
://
home.devjitsu.com
'
var
ws
=
new
websocket
.
WebSocket
(
wsprotocol
+
'
://
localhost
:8131/socket.io/websocket/
'
,
'
borf
'
,
{
origin
:
protocol
+
'
://
localhost
'
});
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
//
var
ws
=
new
websocket
.
WebSocket
(
wsprotocol
+
'
://
home.devjitsu.com
:8133/socket.io/websocket/
'
,
'
borf
'
,
{
origin
:
protocol
+
'
://
home.devjitsu.com
'
var
ws
=
new
websocket
.
WebSocket
(
wsprotocol
+
'
://
localhost
:8133/socket.io/websocket/
'
,
'
borf
'
,
{
origin
:
protocol
+
'
://
localhost
'
});
ws
.
on
(
'
wsupgrade
'
,
function
(
req
,
res
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment