Mercurial > hg > graal-jvmci-8
diff mxtool/URLConnectionDownload.java @ 5017:0b781cdb0cfb
Use lower case http_proxy because this is the default environment variable on Linux
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Fri, 02 Mar 2012 09:23:18 -0800 |
parents | 148fa38782e8 |
children | db072eec897e |
line wrap: on
line diff
--- a/mxtool/URLConnectionDownload.java Fri Mar 02 09:21:10 2012 -0800 +++ b/mxtool/URLConnectionDownload.java Fri Mar 02 09:23:18 2012 -0800 @@ -53,6 +53,10 @@ System.setProperty("java.net.useSystemProxies", "true"); String proxy = System.getenv("HTTP_PROXY"); + if (proxy == null) { + String proxy = System.getenv("http_proxy"); + } + String proxyMsg = ""; if (proxy != null) { Pattern p = Pattern.compile("(?:http://)?([^:]+)(:\\d+)?");