From c9501912742ad5b835933b5a290a8a091c1fb93b Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Tue, 21 Apr 2026 05:05:32 +0700 Subject: [PATCH] fix: sanitize URL concatenation in AHM callback service to prevent double slashes --- src/aeros_simulation/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aeros_simulation/service.py b/src/aeros_simulation/service.py index 918a26a..7f467d4 100644 --- a/src/aeros_simulation/service.py +++ b/src/aeros_simulation/service.py @@ -37,7 +37,7 @@ active_simulations = {} async def call_ahm_callback_service(simulation_id: str, job_id: str): from src.config import AHM_BASE_URL, AHM_SIMULATION_CALLBACK_URL - url = f"{AHM_BASE_URL}{AHM_SIMULATION_CALLBACK_URL}" + url = f"{AHM_BASE_URL.rstrip('/')}/{AHM_SIMULATION_CALLBACK_URL.lstrip('/')}" payload = { "simulation_id": simulation_id, "job_id": job_id,