lib/async/http/protocol/https.rb in async-http-0.15.0 vs lib/async/http/protocol/https.rb in async-http-0.16.0

- old
+ new

@@ -25,9 +25,21 @@ require 'openssl' unless OpenSSL::SSL::SSLContext.instance_methods.include? :alpn_protocols= warn "OpenSSL implementation doesn't support ALPN." + + class OpenSSL::SSL::SSLContext + def alpn_protocols= names + return names + end + end + + class OpenSSL::SSL::SSLSocket + def alpn_protocol + return nil + end + end end module Async module HTTP module Protocol