Skip to content

Commit d60bdb4

Browse files
committed
Add support for Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES.
1 parent a3e7a0e commit d60bdb4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

async-http.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
3030
spec.add_dependency "io-stream", "~> 0.6"
3131
spec.add_dependency "protocol-http", "~> 0.43"
3232
spec.add_dependency "protocol-http1", ">= 0.28.1"
33-
spec.add_dependency "protocol-http2", "~> 0.21"
33+
spec.add_dependency "protocol-http2", "~> 0.22"
3434
spec.add_dependency "traces", "~> 0.10"
3535
spec.add_dependency "metrics", "~> 0.12"
3636
end

lib/async/http/protocol/http2.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def self.trailer?
2727
::Protocol::HTTP2::Settings::ENABLE_PUSH => 0,
2828
::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000,
2929
::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000,
30+
::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1,
3031
}
3132

3233
SERVER_SETTINGS = {
@@ -35,6 +36,7 @@ def self.trailer?
3536
::Protocol::HTTP2::Settings::MAXIMUM_FRAME_SIZE => 0x100000,
3637
::Protocol::HTTP2::Settings::INITIAL_WINDOW_SIZE => 0x800000,
3738
::Protocol::HTTP2::Settings::ENABLE_CONNECT_PROTOCOL => 1,
39+
::Protocol::HTTP2::Settings::NO_RFC7540_PRIORITIES => 1,
3840
}
3941

4042
def self.client(peer, settings = CLIENT_SETTINGS)

0 commit comments

Comments
 (0)