Skip to content
Browse files

Firefox 6 websockets support

  • Loading branch information...
1 parent c0adafc commit 484d638bb29467376a7db405af9c78412895fdd0 @lifo committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cramp/action.rb
  2. +1 −1 lib/cramp/websocket/extension.rb
View
2 lib/cramp/action.rb
@@ -112,7 +112,7 @@ def finish
end
def websockets_protocol_10?
- [8, 9, 10].include?(@env['HTTP_SEC_WEBSOCKET_VERSION'].to_i)
+ [7, 8, 9, 10].include?(@env['HTTP_SEC_WEBSOCKET_VERSION'].to_i)
end
def protocol10_parser
View
2 lib/cramp/websocket/extension.rb
@@ -10,7 +10,7 @@ def protocol_class
end
def websocket?
- @env['HTTP_CONNECTION'] == 'Upgrade' && ['WebSocket', 'websocket'].include?(@env['HTTP_UPGRADE'])
+ ['WebSocket', 'websocket'].include?(@env['HTTP_UPGRADE'])
end
def secure_websocket?

0 comments on commit 484d638

Please sign in to comment.
Something went wrong with that request. Please try again.