Skip to content

Commit

Permalink
Fixing a bug that header Sec-WebSocket-Key{1,2} was case sensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
gimite committed Oct 24, 2010
1 parent dfc5aa6 commit 327bd60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize(arg, params = {})
end
@path = $1
read_header()
if @header["Sec-WebSocket-Key1"] && @header["Sec-WebSocket-Key2"]
if @header["sec-websocket-key1"] && @header["sec-websocket-key2"]
@key3 = read(8)
else
# Old Draft 75 protocol
Expand Down

0 comments on commit 327bd60

Please sign in to comment.