chainlit
chainlit copied to clipboard
PR "add the whole WSGI environ dict to the session" was incorrectly implemented and does not work
trafficstars
Describe the bug
"- [breaking]: http_referer, http_cookie and languages are no longer directly available in the session object. Instead, environ is available containing all of those plus other HTTP headers" is inaccurate. They are not available. See #2105
I also question the use of a parameter name with such strong associations with an existing fixture of Python (ie. os.). This is unnecessarily confusing vs eg wsgi_session or similar.
To Reproduce Steps to reproduce the behavior:
print(cl.user_session.get("environ"))
None
Expected behavior
environ is available containing all of those plus other HTTP headers