Skip to content

Commit 23b4301

Browse files
committed
SSL - Add alpn_protocols to SSLContext attributes
1 parent 992d07c commit 23b4301

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/net/http.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ def use_ssl=(flag)
886886
:@verify_depth,
887887
:@verify_mode,
888888
:@verify_hostname,
889+
:@alpn_protocols,
889890
]
890891
SSL_ATTRIBUTES = [
891892
:ca_file,
@@ -903,6 +904,7 @@ def use_ssl=(flag)
903904
:verify_depth,
904905
:verify_mode,
905906
:verify_hostname,
907+
:alpn_protocols,
906908
]
907909

908910
# Sets path of a CA certification file in PEM format.

0 commit comments

Comments
 (0)