Use / as the default path if the client URI has no path.

This commit is contained in:
James Coglan
2012-04-01 22:57:16 +01:00
parent adee8ba51c
commit bd7c52dfa2
+1 -1
View File
@@ -46,7 +46,7 @@ Handshake.prototype.requestData = function() {
var u = this._uri;
var headers = [
'GET ' + u.pathname + (u.search || '') + ' HTTP/1.1',
'GET ' + (u.pathname || '/') + (u.search || '') + ' HTTP/1.1',
'Host: ' + u.hostname + (u.port ? ':' + u.port : ''),
'Upgrade: websocket',
'Connection: Upgrade',