From 69e29cea3f4fd005040606562a88c1e689c3467d Mon Sep 17 00:00:00 2001 From: Philip Nuzhnyi Date: Mon, 4 Nov 2024 15:41:07 +0000 Subject: [PATCH] update core --- fasthtml/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fasthtml/core.py b/fasthtml/core.py index c041de65..e8436cc6 100644 --- a/fasthtml/core.py +++ b/fasthtml/core.py @@ -239,6 +239,7 @@ def _find_wsp(ws, data, hdrs, arg:str, p:Parameter): if arg.lower()=='htmx': return _get_htmx(hdrs) if arg.lower()=='app': return ws.scope['app'] if arg.lower()=='send': return partial(_send_ws, ws) + if 'session'.startswith(arg.lower()): return ws.scope.get('session', {}) return None res = data.get(arg, None) if res is empty or res is None: res = hdrs.get(arg, None)