lib/httpx/io/ssl.rb in httpx-0.15.4 vs lib/httpx/io/ssl.rb in httpx-0.16.0

- old
+ new

@@ -5,12 +5,12 @@ module HTTPX TLSError = OpenSSL::SSL::SSLError class SSL < TCP TLS_OPTIONS = if OpenSSL::SSL::SSLContext.instance_methods.include?(:alpn_protocols) - { alpn_protocols: %w[h2 http/1.1] } + { alpn_protocols: %w[h2 http/1.1].freeze }.freeze else - {} + {}.freeze end def initialize(_, _, options) super @ctx = OpenSSL::SSL::SSLContext.new