bugfix
This commit is contained in:
parent
21b2b907fd
commit
5d6610bf0e
@ -27,10 +27,10 @@ def get_client_ip(obj, request):
|
|||||||
|
|
||||||
class MyRedisStorage(RedisStorage):
|
class MyRedisStorage(RedisStorage):
|
||||||
def key_gen(self, request):
|
def key_gen(self, request):
|
||||||
uuid = request.headers.get('client_uuid')
|
key = request.headers.get('client_uuid')
|
||||||
if not uuid:
|
if not key:
|
||||||
return uuid.uuid4().hex
|
return uuid.uuid4().hex
|
||||||
b = uuid.encode('utf-8')
|
b = key.encode('utf-8')
|
||||||
return binascii.hexlify(b)
|
return binascii.hexlify(b)
|
||||||
|
|
||||||
async def save_session(self, request: web.Request,
|
async def save_session(self, request: web.Request,
|
||||||
|
Loading…
Reference in New Issue
Block a user