We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f7569 commit 596d71aCopy full SHA for 596d71a
example/sp-wsgi/sp.py
@@ -167,7 +167,7 @@ def __init__(self):
167
168
def get_user(self, environ):
169
cookie = environ.get("HTTP_COOKIE", '')
170
-
+ cookie = cookie.decode("UTF-8")
171
logger.debug("Cookie: %s" % cookie)
172
if cookie:
173
cookie_obj = SimpleCookie(cookie)
@@ -205,7 +205,7 @@ def set_cookie(self, user):
205
cookie[self.cookie_name]['path'] = "/"
206
cookie[self.cookie_name]["expires"] = _expiration(480)
207
logger.debug("Cookie expires: %s" % cookie[self.cookie_name]["expires"])
208
- return cookie.output().split(": ", 1)
+ return cookie.output().encode("UTF-8").split(": ", 1)
209
210
211
# -----------------------------------------------------------------------------
0 commit comments