зеркало из https://github.com/github/aws-s3.git
Remove deprecated Digest::Digest
This commit is contained in:
Родитель
22bc35e2f8
Коммит
3cb1c75c53
|
@ -68,7 +68,7 @@ module AWS
|
||||||
memoized :canonical_string
|
memoized :canonical_string
|
||||||
|
|
||||||
def encoded_canonical
|
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
|
b64_hmac = [OpenSSL::HMAC.digest(digest, secret_access_key, canonical_string)].pack("m").strip
|
||||||
url_encode? ? CGI.escape(b64_hmac) : b64_hmac
|
url_encode? ? CGI.escape(b64_hmac) : b64_hmac
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче