Handle HEAD requests on root route (#3204)
authorDavid Bishop <teancom@users.noreply.github.com>
Sat, 21 Feb 2026 11:05:42 +0000 (03:05 -0800)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 11:05:42 +0000 (12:05 +0100)
music_assistant/controllers/webserver/controller.py

index dddbdff3a0c44b28c40b3ec627aee66bf5015c5a..2c04994e52e7fd09e3c7e0befe680990080d2d0f 100644 (file)
@@ -257,6 +257,7 @@ class WebserverController(CoreController):
         # add index (with onboarding check)
         self._index_path = os.path.join(frontend_dir, "index.html")
         routes.append(("GET", "/", self._handle_index))
+        routes.append(("HEAD", "/", self._handle_index))
         # add logo
         logo_path = str(RESOURCES_DIR.joinpath("logo.png"))
         handler = partial(self._server.serve_static, logo_path)