From cad70be6fc4ae8252200d99b0dcefa422a6f3cb9 Mon Sep 17 00:00:00 2001 From: Kaise Cheng Date: Tue, 13 Sep 2022 19:02:19 +0100 Subject: [PATCH] allow jruby user to use proxy with env variable setup Fixed: #68 --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index a5834412..651ff446 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1222,7 +1222,7 @@ def proxy_port end # [Bug #12921] - if /linux|freebsd|darwin/ =~ RUBY_PLATFORM + if /linux|freebsd|darwin|java/ =~ RUBY_PLATFORM ENVIRONMENT_VARIABLE_IS_MULTIUSER_SAFE = true else ENVIRONMENT_VARIABLE_IS_MULTIUSER_SAFE = false