зеркало из https://github.com/github/aws-s3.git
Merge pull request #4 from github/remove-deprecated-digest
Remove deprecated Digest::Digest
This commit is contained in:
Коммит
9f4b198a51
|
@ -68,7 +68,7 @@ module AWS
|
|||
memoized :canonical_string
|
||||
|
||||
def encoded_canonical
|
||||
digest = OpenSSL::Digest::Digest.new('sha1')
|
||||
digest = OpenSSL::Digest.new('sha1')
|
||||
b64_hmac = [OpenSSL::HMAC.digest(digest, secret_access_key, canonical_string)].pack("m").strip
|
||||
url_encode? ? CGI.escape(b64_hmac) : b64_hmac
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче