Skip to content

Commit a3a4f34

Browse files
committedDec 20, 2024
update: remove URL flag
1 parent 312c566 commit a3a4f34

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
 

‎lib/LocalBinary.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ function LocalBinary(){
1717

1818
this.getDownloadPath = function () {
1919
let sourceURL = 'https://www.browserstack.com/local-testing/downloads/binaries/';
20-
if (process.env.BROWSERSTACK_LOCAL_BIN_URL) {
21-
sourceURL = process.env.BROWSERSTACK_LOCAL_BIN_URL;
22-
}
2320

2421
if(this.hostOS.match(/darwin|mac os/i)){
2522
return sourceURL + 'BrowserStackLocal-darwin-x64';
@@ -146,7 +143,7 @@ function LocalBinary(){
146143
const contentEncoding = response.headers['content-encoding'];
147144
if (typeof contentEncoding === 'string' && contentEncoding.match(/gzip/i)) {
148145
if (process.env.BROWSERSTACK_LOCAL_DEBUG_GZIP) {
149-
console.info('using gzip in ' + options.headers['user-agent']);
146+
console.info('Using gzip in ' + options.headers['user-agent']);
150147
}
151148

152149
response.pipe(zlib.createGunzip()).pipe(fileStream);

‎lib/download.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ https.get(options, function (response) {
3232
const contentEncoding = response.headers['content-encoding'];
3333
if (typeof contentEncoding === 'string' && contentEncoding.match(/gzip/i)) {
3434
if (process.env.BROWSERSTACK_LOCAL_DEBUG_GZIP) {
35-
console.info('using gzip in ' + options.headers['user-agent']);
35+
console.info('Using gzip in ' + options.headers['user-agent']);
3636
}
3737

3838
response.pipe(zlib.createGunzip()).pipe(fileStream);

0 commit comments

Comments
 (0)