Read keyfile in binary mode

This commit is contained in:
Steven Bazyl 2013-01-02 12:59:43 -08:00
parent 1f0ea6338e
commit a631c4003a
1 changed files with 1 additions and 1 deletions

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