falcon 0.33.3 → 0.33.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08103f1c5ce8cf1b5708e58e9c9130a0db195b940781092562ffae98ffc52168'
4
- data.tar.gz: 8ae8110aad31f1e46de034cef8b993562710c9c35db13eec0885cb07c6b9cd30
3
+ metadata.gz: 62e65c1d295cabb418fd3ea304523fc796e2d1b661f4945a32da3625a78a6fd1
4
+ data.tar.gz: 1fb4da035c0e2d143126e56305afe9610db419549c6f04e0afaf8cbcaa39c8c3
5
5
  SHA512:
6
- metadata.gz: 2b0695140adf1dc4517d82c6cb77918be9d49280e8070c4d06b97dad4bdbaac4a74be1cfc4388e81bef0980d1cf2012040cb631751052b0c4b14d8370391aeb1
7
- data.tar.gz: ee67cb39fa1756293e41513dd305a99190c3db286d52ea4f65108c2b1c9a691e23f212a1f95eb586c80b950366401239b049b0f93a4308589869d029529335fc
6
+ metadata.gz: 69b8973b7d44d5cb8557b7821b8b1f7aacb0291c8d1f5c1e07840636a7c694060e67c857248f455a6121178f30f7acc7900546602655ee985100836d0d4f73d8
7
+ data.tar.gz: 3f7b3d7d21c2cb1cee7ed541a4b9226fd9142abd2b3f8301db47d937f2b37a5c28b92c0d3ec7be1e47286208828e6b5e6f462a9f515df4e9e54db123214356cb
data/lib/falcon/hosts.rb CHANGED
@@ -62,7 +62,18 @@ module Falcon
62
62
  end
63
63
 
64
64
  context.session_id_context = "falcon"
65
- context.alpn_protocols = DEFAULT_ALPN_PROTOCOLS
65
+
66
+ context.alpn_select_cb = lambda do |protocols|
67
+ if protocols.include? "h2"
68
+ return "h2"
69
+ elsif protocols.include? "http/1.1"
70
+ return "http/1.1"
71
+ elsif protocols.include? "http/1.0"
72
+ return "http/1.0"
73
+ else
74
+ return nil
75
+ end
76
+ end
66
77
 
67
78
  context.set_params(
68
79
  ciphers: SERVER_CIPHERS,
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Falcon
22
- VERSION = "0.33.3"
22
+ VERSION = "0.33.4"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.3
4
+ version: 0.33.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams