lib/protocol/http1/body/fixed.rb in protocol-http1-0.19.1 vs lib/protocol/http1/body/fixed.rb in protocol-http1-0.20.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2019-2023, by Samuel Williams. +# Copyright, 2019-2024, by Samuel Williams. require 'protocol/http/body/readable' module Protocol module HTTP1 @@ -37,11 +37,9 @@ # `readpartial` will raise `EOFError` if the stream is closed/finished: if chunk = @stream.readpartial(@remaining) @remaining -= chunk.bytesize return chunk - # else - # raise EOFError, "Stream closed with #{@remaining} bytes remaining!" end end end def join