correctly remove hmac- prefix from algo (#6342)

This commit is contained in:
Frédéric Péters 2015-01-23 20:59:03 +01:00
parent 7d6a3d20c5
commit 0f44ca35f6
1 changed files with 1 additions and 1 deletions

View File

@ -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,