Skip to content

Commit

Permalink
update core
Browse files Browse the repository at this point in the history
  • Loading branch information
callmephilip committed Nov 4, 2024
1 parent d9a4c1a commit 69e29ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fasthtml/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 69e29ce

Please sign in to comment.