diff --git a/lib/LocalBinary.js b/lib/LocalBinary.js index 403edee..073bf61 100644 --- a/lib/LocalBinary.js +++ b/lib/LocalBinary.js @@ -17,9 +17,6 @@ function LocalBinary(){ this.getDownloadPath = function () { let sourceURL = 'https://www.browserstack.com/local-testing/downloads/binaries/'; - if (process.env.BROWSERSTACK_LOCAL_BIN_URL) { - sourceURL = process.env.BROWSERSTACK_LOCAL_BIN_URL; - } if(this.hostOS.match(/darwin|mac os/i)){ return sourceURL + 'BrowserStackLocal-darwin-x64'; @@ -146,7 +143,7 @@ function LocalBinary(){ const contentEncoding = response.headers['content-encoding']; if (typeof contentEncoding === 'string' && contentEncoding.match(/gzip/i)) { if (process.env.BROWSERSTACK_LOCAL_DEBUG_GZIP) { - console.info('using gzip in ' + options.headers['user-agent']); + console.info('Using gzip in ' + options.headers['user-agent']); } response.pipe(zlib.createGunzip()).pipe(fileStream); diff --git a/lib/download.js b/lib/download.js index 27207a3..0b0e094 100644 --- a/lib/download.js +++ b/lib/download.js @@ -32,7 +32,7 @@ https.get(options, function (response) { const contentEncoding = response.headers['content-encoding']; if (typeof contentEncoding === 'string' && contentEncoding.match(/gzip/i)) { if (process.env.BROWSERSTACK_LOCAL_DEBUG_GZIP) { - console.info('using gzip in ' + options.headers['user-agent']); + console.info('Using gzip in ' + options.headers['user-agent']); } response.pipe(zlib.createGunzip()).pipe(fileStream);