mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Fix saving config
This commit is contained in:
parent
a6ccb37683
commit
8a49a87a7f
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user