You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Yes, changing to isinstance(response, (web.Response, web.HTTPException, web.FileResponse)) allows sessions to be set when returning static file responses
When I designed aiohttp-session, I made it work with non-streaming responses only.
Theoretically, the library can register on_response_prepare signal to dynamically update the response cookie if needed.
It can allow the processing of all responses, doesn't matter they are streamed or not.
Sorry, I have no idea when I can find time to work on the issue, any contribution is welcome!
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
The text was updated successfully, but these errors were encountered: