Permalink
Browse files

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

  • Loading branch information...
1 parent adee8ba commit bd7c52dfa236ba5f7cb45f728c93bdb5bd08bf29 @jcoglan jcoglan committed Apr 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/faye/websocket/hybi_parser/handshake.js
@@ -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',

0 comments on commit bd7c52d

Please sign in to comment.