lib/httpx/plugins/h2c.rb in httpx-0.6.7 vs lib/httpx/plugins/h2c.rb in httpx-0.7.0
- old
+ new
@@ -40,10 +40,9 @@
if response && valid_h2c_upgrade?(request, response, options)
log { "upgrading to h2c..." }
connection = find_connection(request, connections, options)
connections << connection unless connections.include?(connection)
connection.upgrade(request, response)
- set_request_timeout(connection, request, options)
end
response
end
VALID_H2C_METHODS = %i[get options head].freeze