diff --git a/lib/httpclient/session.rb b/lib/httpclient/session.rb index b3dedd5d..67e2c3ba 100644 --- a/lib/httpclient/session.rb +++ b/lib/httpclient/session.rb @@ -21,7 +21,7 @@ require 'httpclient/timeout' # TODO: remove this once we drop 1.8 support require 'httpclient/ssl_config' require 'httpclient/http' -if RUBY_ENGINE == 'jruby' +if defined? JRUBY_VERSION require 'httpclient/jruby_ssl_socket' else require 'httpclient/ssl_socket'