mirror of
https://github.com/faye/websocket-driver-ruby.git
synced 2025-11-01 13:59:38 +00:00
Remove a redundant statement from the Hybi setup code.
This commit is contained in:
@@ -69,8 +69,6 @@ module WebSocket
|
||||
|
||||
return unless @socket.respond_to?(:env)
|
||||
|
||||
protos = @socket.env['HTTP_SEC_WEBSOCKET_PROTOCOL']
|
||||
|
||||
if protos = @socket.env['HTTP_SEC_WEBSOCKET_PROTOCOL']
|
||||
protos = protos.split(/ *, */) if String === protos
|
||||
@protocol = protos.find { |p| @protocols.include?(p) }
|
||||
|
||||
Reference in New Issue
Block a user