Skip to content

Commit

Permalink
Remove compatibility patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Nov 28, 2024
1 parent 04362a9 commit 1f2bc3f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/protocol/http2/stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ def send_headers?

# The HEADERS frame is used to open a stream, and additionally carries a header block fragment. HEADERS frames can be sent on a stream in the "idle", "reserved (local)", "open", or "half-closed (remote)" state.
def send_headers(*arguments)
if arguments.first.nil?
arguments.shift # Remove nil priority.
end

if @state == :idle
frame = write_headers(*arguments)

Expand Down
2 changes: 1 addition & 1 deletion test/protocol/http2/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def before

it "can create new stream and send response" do
# First argument is deprecated priority.
stream.send_headers(nil, request_headers)
stream.send_headers(request_headers)
expect(stream.id).to be == 1

expect(server).to receive(:receive_headers) do |frame|
Expand Down

0 comments on commit 1f2bc3f

Please sign in to comment.