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)
|
def self.load_key(keyfile, passphrase, &block)
|
||||||
begin
|
begin
|
||||||
begin
|
begin
|
||||||
content = File.read(keyfile)
|
content = File.open(keyfile, 'rb') { |io| io.read }
|
||||||
rescue
|
rescue
|
||||||
content = keyfile
|
content = keyfile
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue