Skip to content

Commit 7eacea4

Browse files
committed
https issue
1 parent c969e88 commit 7eacea4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/browserstack/localbinary.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'net/http'
2+
require 'net/https'
23
require 'rbconfig'
34
require 'openssl'
45
require 'tmpdir'
@@ -39,13 +40,14 @@ def download(dest_parent_dir)
3940
http = Net::HTTP.new(uri.host, uri.port)
4041
http.use_ssl = true
4142
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
43+
4244
http.request_get(uri.path) do |res|
4345
file = open(binary_path, 'w')
4446
res.read_body do |chunk|
4547
file.write(res.body)
4648
end
4749
file.close
48-
FileUtils.chmod "+x", binary_path
50+
FileUtils.chmod 0755, binary_path
4951
end
5052
binary_path
5153
end

0 commit comments

Comments
 (0)