Permalink
Browse files

Merge branch 'master' of https://github.com/izuzak/node-websocket-client

 into izuzak-master
  • Loading branch information...
2 parents 3f85098 + 501fa01 commit f936003a9bc3d53aebc7887f9682135616c09c62 @pgriess committed Dec 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/websocket.js
View
@@ -475,7 +475,7 @@ var WebSocket = function(url, proto, opts) {
var u = urllib.parse(url);
httpClient = http.createClient(u.port || 80, u.hostname);
httpPath = (u.pathname || '/') + (u.search || '');
- httpHeaders.Host = u.hostname;
+ httpHeaders.Host = u.hostname + (u.port ? (":" + u.port) : "");
break;
case 'ws+unix':

0 comments on commit f936003

Please sign in to comment.