lib/async/http/protocol/https.rb in async-http-0.62.0 vs lib/async/http/protocol/https.rb in async-http-0.63.0
- old
+ new
@@ -7,27 +7,9 @@
require_relative 'http10'
require_relative 'http11'
require_relative 'http2'
-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
# A server that supports both HTTP1.0 and HTTP1.1 semantics by detecting the version of the request.
module HTTPS