Skip to content

Commit 4b680eb

Browse files
authored
Remove compatibility patch. (#24)
1 parent 04362a9 commit 4b680eb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/protocol/http2/stream.rb

-4
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ def send_headers?
136136

137137
# 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.
138138
def send_headers(*arguments)
139-
if arguments.first.nil?
140-
arguments.shift # Remove nil priority.
141-
end
142-
143139
if @state == :idle
144140
frame = write_headers(*arguments)
145141

test/protocol/http2/connection.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def before
191191

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

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

0 commit comments

Comments
 (0)