From 2cd9d486ee2db8cf566f306c9c3ef6c6eeddc419 Mon Sep 17 00:00:00 2001 From: thomas morgan Date: Fri, 27 Oct 2023 14:20:30 -0600 Subject: [PATCH] fix ruby unused variable warning --- lib/async/websocket/upgrade_response.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/async/websocket/upgrade_response.rb b/lib/async/websocket/upgrade_response.rb index 14b454e..21e9597 100644 --- a/lib/async/websocket/upgrade_response.rb +++ b/lib/async/websocket/upgrade_response.rb @@ -18,7 +18,6 @@ def initialize(request, headers = nil, protocol: nil, &block) if accept_nounce = request.headers[SEC_WEBSOCKET_KEY]&.first headers.add(SEC_WEBSOCKET_ACCEPT, Nounce.accept_digest(accept_nounce)) - status = 101 if protocol headers.add(SEC_WEBSOCKET_PROTOCOL, protocol)