fix: sanitize URL concatenation in AHM callback service to prevent double slashes

main
Cizz22 3 months ago
parent 6dd40d8cb0
commit c950191274

@ -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,

Loading…
Cancel
Save