Don't encode strings as 'utf-8' twice in _get_cache_key. Closes #109.

This commit is contained in:
Ivan Malison 2015-01-05 15:55:45 -08:00
parent 387220c1d6
commit c2b03afe55
2 changed files with 18 additions and 1 deletions

View file

@ -1070,7 +1070,7 @@ class _Request(object):
for key in keys:
if key != "api_sig" and key != "api_key" and key != "sk":
cache_key += key + _string(self.params[key])
cache_key += key + self.params[key]
return hashlib.sha1(cache_key.encode("utf-8")).hexdigest()