Skip to content

Commit 43f32ed

Browse files
authored
Handle DELETE method in ReadSignals (#37)
1 parent ac15361 commit 43f32ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/datastar_py/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def _read_signals(
1515
) -> dict[str, Any] | None:
1616
if "Datastar-Request" not in headers:
1717
return None
18-
if method == "GET":
18+
if method in ("GET", "DELETE"):
1919
data = params.get("datastar")
2020
elif headers.get("Content-Type") == "application/json":
2121
data = body

0 commit comments

Comments
 (0)