From 5f92f7e41f083a866ab281c48cc1c932fb4a6a60 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 3 Sep 2024 16:19:34 +0200 Subject: [PATCH] enh: prevent trailing / from comfyui base url Co-Authored-By: qwertyoriuop <41389168+qwertyoriuop@users.noreply.github.com> --- backend/apps/images/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/images/main.py b/backend/apps/images/main.py index ec2b963a8..7af68f066 100644 --- a/backend/apps/images/main.py +++ b/backend/apps/images/main.py @@ -133,7 +133,7 @@ async def update_config(form_data: ConfigForm, user=Depends(get_admin_user)): 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_NODES = form_data.comfyui.COMFYUI_WORKFLOW_NODES