Don't encode strings as 'utf-8' twice in _get_cache_key. Closes #109.
This commit is contained in:
parent
387220c1d6
commit
c2b03afe55
2 changed files with 18 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue