From d1247f951f1170fbb16afd24255a82130f0c516e Mon Sep 17 00:00:00 2001 From: Mohammed Mohsin <59914433+mdmohsin7@users.noreply.github.com> Date: Fri, 27 Dec 2024 10:09:10 +0530 Subject: [PATCH] remove trailing/leading spaces from webhook url --- backend/routers/apps.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/routers/apps.py b/backend/routers/apps.py index 7573f95a4..e370a3245 100644 --- a/backend/routers/apps.py +++ b/backend/routers/apps.py @@ -57,6 +57,7 @@ def create_app(app_data: str = Form(...), file: UploadFile = File(...), uid=Depe if data.get('payment_plan') is None: raise HTTPException(status_code=422, detail='Payment plan is required') if external_integration := data.get('external_integration'): + external_integration['webhook_url'] = external_integration['webhook_url'].strip() if external_integration.get('triggers_on') is None: raise HTTPException(status_code=422, detail='Triggers on is required') # check if setup_instructions_file_path is a single url or a just a string of text