diff --git a/lib/async/http/protocol/http1/connection.rb b/lib/async/http/protocol/http1/connection.rb index 9f84364..1ceed5d 100755 --- a/lib/async/http/protocol/http1/connection.rb +++ b/lib/async/http/protocol/http1/connection.rb @@ -43,7 +43,7 @@ def http2? end def peer - @peer ||= Protocol::HTTP::Peer.for(@stream.io) + @peer ||= ::Protocol::HTTP::Peer.for(@stream.io) end attr :count diff --git a/lib/async/http/protocol/http2/connection.rb b/lib/async/http/protocol/http2/connection.rb index cfde0eb..46b6120 100644 --- a/lib/async/http/protocol/http2/connection.rb +++ b/lib/async/http/protocol/http2/connection.rb @@ -113,7 +113,7 @@ def read_in_background(parent: Task.current) attr :promises def peer - @peer ||= Protocol::HTTP::Peer.for(@stream.io) + @peer ||= ::Protocol::HTTP::Peer.for(@stream.io) end attr :count