Skip to content
Snippets Groups Projects
Commit 98fa0b7b authored by Ayub's avatar Ayub Committed by Feanil Patel
Browse files

py3 bug fix (#21351)

parent 7e670731
Branches
Tags
No related merge requests found
......@@ -201,7 +201,7 @@ class SafeCookieData(object):
"""
hash_func = sha256()
for data_item in [self.version, self.session_id, user_id]:
hash_func.update(six.text_type(data_item))
hash_func.update(six.b(six.text_type(data_item)))
hash_func.update('|')
return hash_func.hexdigest()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment