From 09c90938f29b222ad5a0831002e3959bda0549fa Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 17 Apr 2024 10:50:52 +1200 Subject: [PATCH] Try `eof?` to check for failures. --- lib/protocol/http1/body/remainder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protocol/http1/body/remainder.rb b/lib/protocol/http1/body/remainder.rb index ac87474..be4cc30 100644 --- a/lib/protocol/http1/body/remainder.rb +++ b/lib/protocol/http1/body/remainder.rb @@ -18,7 +18,7 @@ def initialize(stream) end def empty? - @empty or @stream.closed? + @stream.eof? or @stream.closed? end def close(error = nil)