Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Incomplete
-
Affects Version/s: JRuby 1.6.7, JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Java Integration
-
Labels:None
-
Environment:
jruby -J-Dhttp.proxyHost=localhost -J-Dhttp.proxyPort=8080
-
Number of attachments :
Description
There is an accepted http_proxy setting as an environment variable or setting a JVM System property http.proxyHost. Net::HTTP seems to only register a proxy setting when explicitly declared with Net::HTTP::Proxy#start.
Net::HTTP should check at least the JVM system property when making requests. The doc does mention not using the ENVIRONMENT variable but I believe a special case should be made for a JVM setting.
I am not opposed. Looking into the PR.