Skip to content

Commit

Permalink
Merge pull request #358 from vincentwoo/patch-1
Browse files Browse the repository at this point in the history
Check jruby a different way
  • Loading branch information
nahi committed Apr 16, 2017
2 parents e24cfea + 76c403d commit e13cd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/httpclient/session.rb
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 e13cd04

Please sign in to comment.