From a7b147bbcb8725ef987ae0d859b2735e89782478 Mon Sep 17 00:00:00 2001 From: Tobias Vollmer <5nafu@users.noreply.github.com> Date: Wed, 6 May 2026 17:54:57 +0200 Subject: [PATCH] fix: handle empty POST body This will handle the edge case of having an empty body on a POST request. Notable example is the location service for the firefox browser. --- appdaemon/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appdaemon/http.py b/appdaemon/http.py index 21a1b7ceb..09556e25c 100644 --- a/appdaemon/http.py +++ b/appdaemon/http.py @@ -965,7 +965,7 @@ async def dispatch_app_endpoint(self, endpoint, request): if request.method == "POST": try: - args = await request.json() + args = await request.json() if request.can_read_body else null except json.decoder.JSONDecodeError: return self.get_response(request, 400, "JSON Decode Error") else: