Fixing broken Net::HTTP in jruby.