From 4a1da3ebc5d13e24de6c65c73118dd3b17ccb5d8 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 26 Sep 2024 10:19:37 -0600 Subject: [PATCH] Fix saving config (#13985) --- 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(