Skip to content

Commit

Permalink
Remove trailing/leading spaces from webhook url (#1594)
Browse files Browse the repository at this point in the history
Closes #1593
  • Loading branch information
beastoin authored Dec 27, 2024
2 parents a60d175 + d1247f9 commit 4dbdf63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/routers/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4dbdf63

Please sign in to comment.