From 76c403d168817d15b5a0862b6a215db1e8ded68f Mon Sep 17 00:00:00 2001 From: Vincent Woo Date: Tue, 21 Feb 2017 17:36:40 -0800 Subject: [PATCH] Check jruby a different way RUBY_ENGINE is undefined in MRI 1.8.x --- lib/httpclient/session.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'