We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eacea4 commit 601191bCopy full SHA for 601191b
1 file changed
lib/browserstack/localbinary.rb
@@ -41,14 +41,12 @@ def download(dest_parent_dir)
41
http.use_ssl = true
42
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
43
44
- http.request_get(uri.path) do |res|
45
- file = open(binary_path, 'w')
46
- res.read_body do |chunk|
47
- file.write(res.body)
48
- end
49
- file.close
50
- FileUtils.chmod 0755, binary_path
51
+ res = http.get(uri.path)
+ file = open(binary_path, 'w')
+ file.write(res.body)
+ file.close
+ FileUtils.chmod 0755, binary_path
+
52
binary_path
53
end
54
0 commit comments