lib/httpx/plugins/upgrade.rb in httpx-1.1.2 vs lib/httpx/plugins/upgrade.rb in httpx-1.1.3
- old
+ new
@@ -44,10 +44,9 @@
return response unless protocol_handler
log { "upgrading to #{upgrade_protocol}..." }
connection = find_connection(request, connections, options)
- connections << connection unless connections.include?(connection)
# do not upgrade already upgraded connections
return if connection.upgrade_protocol == upgrade_protocol
protocol_handler.call(connection, request, response)