Skip to content

Commit 342333a

Browse files
committed
Remove unnecessary alpn hack.
1 parent 32e29e1 commit 342333a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lib/async/http/protocol/https.rb

-18
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,6 @@
99

1010
require_relative 'http2'
1111

12-
require 'openssl'
13-
14-
unless OpenSSL::SSL::SSLContext.instance_methods.include? :alpn_protocols=
15-
warn "OpenSSL implementation doesn't support ALPN."
16-
17-
class OpenSSL::SSL::SSLContext
18-
def alpn_protocols= names
19-
return names
20-
end
21-
end
22-
23-
class OpenSSL::SSL::SSLSocket
24-
def alpn_protocol
25-
return nil
26-
end
27-
end
28-
end
29-
3012
module Async
3113
module HTTP
3214
module Protocol

0 commit comments

Comments
 (0)