Skip to content

Commit

Permalink
update: remove URL flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-kaur04 committed Dec 20, 2024
1 parent 312c566 commit a3a4f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions lib/LocalBinary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3a4f34

Please sign in to comment.