lib/async/http/protocol/http10.rb in async-http-0.64.2 vs lib/async/http/protocol/http10.rb in async-http-0.65.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2023, by Samuel Williams. +# Copyright, 2017-2024, by Samuel Williams. require_relative 'http1' module Async module HTTP @@ -18,16 +18,16 @@ def self.trailer? false end def self.client(peer) - stream = IO::Stream.new(peer, sync: true) + stream = ::IO::Stream::Buffered.wrap(peer) return HTTP1::Client.new(stream, VERSION) end def self.server(peer) - stream = IO::Stream.new(peer, sync: true) + stream = ::IO::Stream::Buffered.wrap(peer) return HTTP1::Server.new(stream, VERSION) end def self.names