From a8d148e57b017c8b02743fc0a859a2c30c992944 Mon Sep 17 00:00:00 2001 From: Ben Croker <57572400+bencroker@users.noreply.github.com> Date: Fri, 27 Mar 2026 11:35:48 -0600 Subject: [PATCH] Handle DELETE method in `ReadSignals` --- src/datastar_py/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastar_py/__init__.py b/src/datastar_py/__init__.py index 70c5f27..d83540a 100644 --- a/src/datastar_py/__init__.py +++ b/src/datastar_py/__init__.py @@ -15,7 +15,7 @@ def _read_signals( ) -> dict[str, Any] | None: if "Datastar-Request" not in headers: return None - if method == "GET": + if method in ("GET", "DELETE"): data = params.get("datastar") elif headers.get("Content-Type") == "application/json": data = body