I'm not sure if there's a reason to exclude it, but it seems that sessions aren't saved when response is an instance of web.FileResponse.
It gets excluded here when checking the type of the response:
|
if not isinstance(response, (web.Response, web.HTTPException)): |
|
# likely got websocket or streaming |
|
return response |
I'm not sure if there's a reason to exclude it, but it seems that sessions aren't saved when response is an instance of
web.FileResponse.It gets excluded here when checking the type of the response:
aiohttp-session/aiohttp_session/__init__.py
Lines 204 to 206 in 015dfb1