falcon 0.33.4 → 0.33.5

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: 62e65c1d295cabb418fd3ea304523fc796e2d1b661f4945a32da3625a78a6fd1
4
- data.tar.gz: 1fb4da035c0e2d143126e56305afe9610db419549c6f04e0afaf8cbcaa39c8c3
3
+ metadata.gz: 19e807a12e49edbeeb98689058a0a2c90b9dac4c1a6325ffb73a694a48982c4c
4
+ data.tar.gz: b31de1affbba65956932eb910a471c15e6eb5045f2b08af6fc1f41ec45fbc016
5
5
  SHA512:
6
- metadata.gz: 69b8973b7d44d5cb8557b7821b8b1f7aacb0291c8d1f5c1e07840636a7c694060e67c857248f455a6121178f30f7acc7900546602655ee985100836d0d4f73d8
7
- data.tar.gz: 3f7b3d7d21c2cb1cee7ed541a4b9226fd9142abd2b3f8301db47d937f2b37a5c28b92c0d3ec7be1e47286208828e6b5e6f462a9f515df4e9e54db123214356cb
6
+ metadata.gz: c9be79f33b6c4db25ad42aaee2cb2992bafc7f4a3a6a59431671dd280f503f53d1da51001d3c9a30d84c0de6d53303a19abca729e2184438d6caf909e32991bf
7
+ data.tar.gz: fcf92a02c903a6bc6658d4e6900e4065a7ee6a7fcc4c9753d0d439d9b41a5df52521e90bb2339e7e8e379085e94f1e2c54807ff69dfe8d233bc1c1c8400e6e03
@@ -34,6 +34,18 @@ add(:tls) do
34
34
 
35
35
  context.session_id_context = ssl_session_id
36
36
 
37
+ context.alpn_select_cb = lambda do |protocols|
38
+ if protocols.include? "h2"
39
+ return "h2"
40
+ elsif protocols.include? "http/1.1"
41
+ return "http/1.1"
42
+ elsif protocols.include? "http/1.0"
43
+ return "http/1.0"
44
+ else
45
+ return nil
46
+ end
47
+ end
48
+
37
49
  context.set_params(
38
50
  verify_mode: OpenSSL::SSL::VERIFY_NONE,
39
51
  )
data/lib/falcon/hosts.rb CHANGED
@@ -63,18 +63,6 @@ module Falcon
63
63
 
64
64
  context.session_id_context = "falcon"
65
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
77
-
78
66
  context.set_params(
79
67
  ciphers: SERVER_CIPHERS,
80
68
  verify_mode: OpenSSL::SSL::VERIFY_NONE,
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Falcon
22
- VERSION = "0.33.4"
22
+ VERSION = "0.33.5"
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.4
4
+ version: 0.33.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams