enh: prevent trailing / from comfyui base url

Co-Authored-By: qwertyoriuop <41389168+qwertyoriuop@users.noreply.github.com>
This commit is contained in:
Timothy J. Baek 2024-09-03 16:19:34 +02:00
parent 890824ced4
commit 5f92f7e41f

View File

@ -133,7 +133,7 @@ async def update_config(form_data: ConfigForm, user=Depends(get_admin_user)):
form_data.automatic1111.AUTOMATIC1111_API_AUTH form_data.automatic1111.AUTOMATIC1111_API_AUTH
) )
app.state.config.COMFYUI_BASE_URL = form_data.comfyui.COMFYUI_BASE_URL app.state.config.COMFYUI_BASE_URL = form_data.comfyui.COMFYUI_BASE_URL.strip("/")
app.state.config.COMFYUI_WORKFLOW = form_data.comfyui.COMFYUI_WORKFLOW app.state.config.COMFYUI_WORKFLOW = form_data.comfyui.COMFYUI_WORKFLOW
app.state.config.COMFYUI_WORKFLOW_NODES = form_data.comfyui.COMFYUI_WORKFLOW_NODES app.state.config.COMFYUI_WORKFLOW_NODES = form_data.comfyui.COMFYUI_WORKFLOW_NODES