Skip to content

NVR with realtime local object detection for IP cameras

Fix saving config (#13985)

Nicolas Mowen4a1da3ebc5d1
diff --git a/frigate/api/app.py b/frigate/api/app.py
index 2de0b0f234..78201dcd85 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(