mirror of
https://github.com/faye/websocket-driver-ruby.git
synced 2025-11-01 13:59:38 +00:00
Fix an uninitialised variable warning.
This commit is contained in:
@@ -74,6 +74,8 @@ module WebSocket
|
||||
if protos = @socket.env['HTTP_SEC_WEBSOCKET_PROTOCOL']
|
||||
protos = protos.split(/ *, */) if String === protos
|
||||
@protocol = protos.find { |p| @protocols.include?(p) }
|
||||
else
|
||||
@protocol = nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user