From 12fc3de4eba914050448a32c55183135fca5a947 Mon Sep 17 00:00:00 2001 From: Kensuke Nagae Date: Tue, 9 Aug 2016 20:35:23 +0900 Subject: [PATCH] Open binary file as binary mode --- lib/browserstack/localbinary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browserstack/localbinary.rb b/lib/browserstack/localbinary.rb index ddd8c04..f883eaa 100644 --- a/lib/browserstack/localbinary.rb +++ b/lib/browserstack/localbinary.rb @@ -42,7 +42,7 @@ def download(dest_parent_dir) http.verify_mode = OpenSSL::SSL::VERIFY_NONE res = http.get(uri.path) - file = open(binary_path, 'w') + file = open(binary_path, 'wb') file.write(res.body) file.close FileUtils.chmod 0755, binary_path