Read keyfile in binary mode

This commit is contained in:
Steven Bazyl committed 2013-01-02 12:59:43 -08:00
1 parent 1f0ea6338e
commit a631c4003a
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ module Google
def self.load_key(keyfile, passphrase, &block)
begin
begin
content = File.read(keyfile)
content = File.open(keyfile, 'rb') { |io| io.read }
rescue
content = keyfile
end