Skip to content

Commit

Permalink
Added check for http_proxy environment variable, and if present, use …
Browse files Browse the repository at this point in the history
…proxy; bumped version to 1.1.10
  • Loading branch information
geebee committed Feb 19, 2014
1 parent 66ea06e commit f2469ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/selenium-launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ function download(url, outfile, expectedSha, cb) {
var real = function() {
console.log('Downloading Selenium ' + version)
var i = 0
request({ url: url })
var requestOptions = {url: url};
if (process.env.http_proxy != null) {
requestOptions.proxy = process.env.http_proxy;
}
request(requestOptions)
.on('end', function() {
process.stdout.write('\n')
cb()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "selenium-launcher",
"description": "A library to download and launch the Selenium Server.",
"version": "1.1.9",
"version": "1.1.10",
"homepage": "https://github.com/daaku/nodejs-selenium-launcher",
"author": "Naitik Shah <n@daaku.org>",
"main": "lib/selenium-launcher",
Expand Down

0 comments on commit f2469ee

Please sign in to comment.