LearnBoost/socket.io — pull request #633 by nambad (2011-11-10 09:25:04+00:00)
Title: Give Origins without a port number

Ok... After lot of problems and research, I realized that in the concept of origins, http://localhost is not equal to http://localhost:80

When used 'localhost' in origins, it would always give invalid origin as parts.port was always undefined. To solve this i added the below 3 lines of code

if(!parts.port)
{
parts.port = 80;
}

in the files
lib/manager.js
lib/transports/websocket/hybi-07-12.js
lib/transports/websocket/hybi-16.js
lib/transports/websocket/hybi-17.js

Make sure in configuration, origin parameter, one needs to enter "localhost:80"