Skip to content

add java as a valid RUBY_PLATFORM #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

kaisecheng
Copy link

jruby users are not able to use env variable to setup proxy with basic authentication because the RUBY_PLATFORM does not allow java.
The commit includes java as a valid platform.

expected behaviour

  1. export JRUBY_OPTS='-J-Dhttps.proxyHost=user:pw@host -J-Dhttps.proxyPort=3128 -J-Dhttp.proxyHost=user:pw@host -J-Dhttp.proxyPort=3128'
  2. ruby -e "require 'net/http'; uri = URI('https://www.google.com'); Net::HTTP.get(uri);"
  3. no error is thrown

Fixed: #68

@hsbt hsbt closed this Sep 28, 2022
@hsbt
Copy link
Member

hsbt commented Sep 28, 2022

@kaisecheng Thanks, But this condition has been removed at #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail to fetch proxy user/pw from env variable
2 participants