Skip to content

Commit

Permalink
encode to utf-8 to update md5 hash
Browse files Browse the repository at this point in the history
  • Loading branch information
thadeusb committed Jul 30, 2013
1 parent 14a5fa1 commit fc8d66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_cache/__init__.py
Expand Up @@ -311,7 +311,7 @@ def make_cache_key(f, *args, **kwargs):
except AttributeError:
updated = "%s%s%s" % (altfname, keyargs, keykwargs)

cache_key.update(updated)
cache_key.update(updated.encode('utf-8'))
cache_key = base64.b64encode(cache_key.digest())[:16]
cache_key += version_data

Expand Down

0 comments on commit fc8d66c

Please sign in to comment.