lib/async/http/protocol/http1/response.rb in async-http-0.57.0 vs lib/async/http/protocol/http1/response.rb in async-http-0.58.0

- old
+ new

@@ -31,14 +31,16 @@ if parts = connection.read_response(request.method) self.new(connection, *parts) end end + UPGRADE = 'upgrade' + # @param reason [String] HTTP response line reason, ignored. def initialize(connection, version, status, reason, headers, body) @connection = connection - protocol = connection.upgrade?(headers) + protocol = headers.delete(UPGRADE) super(version, status, headers, body, protocol) end def connection