lib/async/http/protocol/http2/client.rb in async-http-0.45.4 vs lib/async/http/protocol/http2/client.rb in async-http-0.45.6
- old
+ new
@@ -37,10 +37,10 @@
super(framer)
end
def create_response
- Response.new(self, self.next_stream_id)
+ Response::Stream.create(self, self.next_stream_id).response
end
# Used by the client to send requests to the remote server.
def call(request)
raise ::Protocol::HTTP2::Error, "Connection closed!" if self.closed?