From 8a49a87a7f806360ba26fc0999c36df6d6efa179 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 26 Sep 2024 10:00:07 -0600 Subject: [PATCH] Fix saving config --- frigate/api/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/api/app.py b/frigate/api/app.py index 2de0b0f23..78201dcd8 100644 --- a/frigate/api/app.py +++ b/frigate/api/app.py @@ -166,8 +166,8 @@ def config_raw(): @router.post("/config/save") -def config_save(save_option: str, body: Any = Body()): - new_config = body +def config_save(save_option: str, body: Any = Body(media_type="text/plain")): + new_config = body.decode() if not new_config: return JSONResponse(