Skip to content

Commit e13cd04

Browse files
authored
Merge pull request #358 from vincentwoo/patch-1
Check jruby a different way
2 parents e24cfea + 76c403d commit e13cd04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/httpclient/session.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
require 'httpclient/timeout' # TODO: remove this once we drop 1.8 support
2222
require 'httpclient/ssl_config'
2323
require 'httpclient/http'
24-
if RUBY_ENGINE == 'jruby'
24+
if defined? JRUBY_VERSION
2525
require 'httpclient/jruby_ssl_socket'
2626
else
2727
require 'httpclient/ssl_socket'

0 commit comments

Comments
 (0)