Read keyfile in binary mode
This commit is contained in:
parent
1f0ea6338e
commit
a631c4003a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue