From 019ba714cd12f91f9683055da692f6be06691270 Mon Sep 17 00:00:00 2001 From: James Coglan Date: Tue, 28 May 2019 17:33:55 +0100 Subject: [PATCH] Remove a redundant statement from the Hybi setup code. --- lib/websocket/driver/hybi.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/websocket/driver/hybi.rb b/lib/websocket/driver/hybi.rb index 8afc334..96be39e 100644 --- a/lib/websocket/driver/hybi.rb +++ b/lib/websocket/driver/hybi.rb @@ -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) }