Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
b3105423f8
|
|||
| 249a7abd89 | |||
| 093d28fe62 | |||
| 7e43c76ad0 | |||
| c25a62412d |
@@ -10,7 +10,7 @@
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
__version__ = '2.1.0'
|
||||
__version__ = '3.0.0'
|
||||
|
||||
import os
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class ServerSideSession(SecureCookieSession):
|
||||
"""Baseclass for server-side based sessions."""
|
||||
|
||||
def __init__(self, initial=None, sid=None, permanent=None, addr=None):
|
||||
super(ServerSideSession, self).__init__(**initial or {})
|
||||
super(ServerSideSession, self).__init__(initial or {})
|
||||
self.sid = sid
|
||||
if permanent:
|
||||
self.permanent = permanent
|
||||
@@ -189,7 +189,7 @@ class SessionInterface(QuartSessionInterface):
|
||||
session_id = self._get_signer(app).sign(want_bytes(session.sid))
|
||||
else:
|
||||
session_id = session.sid
|
||||
response.set_cookie(cname, session_id,
|
||||
response.set_cookie(cname, session_id.decode('utf-8'),
|
||||
expires=expires, httponly=httponly,
|
||||
domain=domain, path=path, secure=secure, samesite=samesite)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user