From f10fd718470fce706ebf13ba11846e2620612e04 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Tue, 19 Dec 2023 15:25:11 +0530 Subject: [PATCH] fix: follow redirects Signed-off-by: Akhil Narang --- dumpyarabot/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dumpyarabot/utils.py b/dumpyarabot/utils.py index 72e79a8..846b003 100644 --- a/dumpyarabot/utils.py +++ b/dumpyarabot/utils.py @@ -38,6 +38,7 @@ async def cancel_jenkins_job(job_id: str) -> str: response = await client.post( f"{settings.JENKINS_URL}/job/dumpyara/{job_id}/stop", auth=(settings.JENKINS_USER_NAME, settings.JENKINS_USER_TOKEN), + follow_redirects=True, ) if response.status_code == 200: return f"Job with ID {job_id} has been cancelled."