Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
add older protocol headers to env map
Browse files Browse the repository at this point in the history
  • Loading branch information
kenichi committed Apr 9, 2015
1 parent 3e5517a commit 4bb8a3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/reel/websocket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ class DriverEnvironment
def_delegators :socket, :write

RACK_HEADERS = {
'Origin' => 'HTTP_ORIGIN',
'Sec-WebSocket-Key' => 'HTTP_SEC_WEBSOCKET_KEY',
'Sec-WebSocket-Key1' => 'HTTP_SEC_WEBSOCKET_KEY1',
'Sec-WebSocket-Key2' => 'HTTP_SEC_WEBSOCKET_KEY2',
'Sec-WebSocket-Extensions' => 'HTTP_SEC_WEBSOCKET_EXTENSIONS',
'Sec-WebSocket-Protocol' => 'HTTP_SEC_WEBSOCKET_PROTOCOL',
'Sec-WebSocket-Version' => 'HTTP_SEC_WEBSOCKET_VERSION'
Expand Down

0 comments on commit 4bb8a3e

Please sign in to comment.