lib/async/http/protocol/response.rb in async-http-0.82.3 vs lib/async/http/protocol/response.rb in async-http-0.83.0

- old
+ new

@@ -19,20 +19,14 @@ def hijack? false end def peer - if connection = self.connection - connection.peer - end + self.connection&.peer end def remote_address - @remote_address ||= peer.remote_address - end - - def remote_address= value - @remote_address = value + self.peer&.remote_address end def inspect "#<#{self.class}:0x#{self.object_id.to_s(16)} status=#{status}>" end