Skip to content

Commit

Permalink
Check for flags before checking for end stream
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Jun 10, 2024
1 parent cdd1f5c commit 148ff92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/2/stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def process_priority(frame)
def end_stream?(frame)
case frame[:type]
when :data, :headers, :continuation
frame[:flags].include?(:end_stream)
frame[:flags] && frame[:flags].include?(:end_stream)
else false
end
end
Expand Down

0 comments on commit 148ff92

Please sign in to comment.