Skip to content

Commit

Permalink
Try eof? to check for failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 16, 2024
1 parent 115dbf6 commit 09c9093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/protocol/http1/body/remainder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(stream)
end

def empty?
@empty or @stream.closed?
@stream.eof? or @stream.closed?
end

def close(error = nil)
Expand Down

0 comments on commit 09c9093

Please sign in to comment.