Use / as the default path if the client URI has no path.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user