Skip to content

Commit 3a5c1cc

Browse files
committed
ensure finishable is marked as closed if underlying body is empty
1 parent b9e1b10 commit 3a5c1cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/async/http/protocol/http1/finishable.rb

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def read
2929
@reading = true
3030

3131
super
32+
ensure
33+
@closed.value = true if @body.empty?
3234
end
3335

3436
def close(error = nil)

0 commit comments

Comments
 (0)