Skip to content

Commit 7ef2d27

Browse files
authored
Merge pull request #15 from quipper/binary-mode
Open binary file as binary mode
2 parents 9455ac7 + 12fc3de commit 7ef2d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/browserstack/localbinary.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def download(dest_parent_dir)
4242
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
4343

4444
res = http.get(uri.path)
45-
file = open(binary_path, 'w')
45+
file = open(binary_path, 'wb')
4646
file.write(res.body)
4747
file.close
4848
FileUtils.chmod 0755, binary_path

0 commit comments

Comments
 (0)