forked from Github/frigate
Fix saving config (#13985)
This commit is contained in:
@@ -166,8 +166,8 @@ def config_raw():
|
|||||||
|
|
||||||
|
|
||||||
@router.post("/config/save")
|
@router.post("/config/save")
|
||||||
def config_save(save_option: str, body: Any = Body()):
|
def config_save(save_option: str, body: Any = Body(media_type="text/plain")):
|
||||||
new_config = body
|
new_config = body.decode()
|
||||||
|
|
||||||
if not new_config:
|
if not new_config:
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
|
|||||||
Reference in New Issue
Block a user