lib/httpx/plugins/h2c.rb in httpx-0.4.1 vs lib/httpx/plugins/h2c.rb in httpx-0.5.0

- old
+ new

@@ -42,9 +42,10 @@ 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