Permalink
Browse files

Fixing a bug that header Sec-WebSocket-Key{1,2} was case sensitive.

  • Loading branch information...
1 parent dfc5aa6 commit 327bd60c8471f1b09037068ec87caeb51e017b95 @gimite committed Oct 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/web_socket.rb
View
@@ -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

0 comments on commit 327bd60

Please sign in to comment.