correctly remove hmac- prefix from algo (#6342)
This commit is contained in:
parent
7d6a3d20c5
commit
0f44ca35f6
|
@ -175,7 +175,7 @@ class Data(object):
|
|||
self.final_url = self.url
|
||||
if self.source.get('auth_mech', '').startswith('hmac'):
|
||||
# remove the hmac- prefix
|
||||
hash_algo = self.auth_mech[:5]
|
||||
hash_algo = self.auth_mech[5:]
|
||||
self.final_url = signature.sign_url(
|
||||
self.final_url,
|
||||
self.signature_key,
|
||||
|
|
Reference in New Issue