Permalink
Browse files

Merge pull request #22 from stephank/hybi13

Minimum support for hybi13
  • Loading branch information...
2 parents 05ef004 + e17ae50 commit 653a38daad90631d54376b979010e41b2d9acdf5 @majek majek committed Oct 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/trans-websocket.coffee
@@ -27,7 +27,7 @@ exports.app =
location += '://' + req.headers.host + req.url
ver = req.headers['sec-websocket-version']
- if ver is '8' or ver is '7'
+ if ver in ['7', '8', '13']
new websocket_hybi10.WebHandshake8(@, req, connection, head or '', origin, location)
else
new websocket_hixie76.WebHandshakeHixie76(@, req, connection, head or '', origin, location)

0 comments on commit 653a38d

Please sign in to comment.