Skip to content

Commit

Permalink
Check jruby a different way
Browse files Browse the repository at this point in the history
RUBY_ENGINE is undefined in MRI 1.8.x
  • Loading branch information
vincentwoo authored Feb 22, 2017
1 parent 840e02e commit 76c403d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httpclient/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 76c403d

Please sign in to comment.