From 4c908e6fd4771ec9ae1b585585e578bef40df409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorens=20Le=C3=B3n?= Date: Thu, 9 Jan 2025 09:29:22 +0100 Subject: [PATCH] chore: fix tests --- src/webhooks/webhooks.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webhooks/webhooks.ts b/src/webhooks/webhooks.ts index 8b184cb8b..2e93564e3 100644 --- a/src/webhooks/webhooks.ts +++ b/src/webhooks/webhooks.ts @@ -99,6 +99,8 @@ function addPort(parsedUrl: URL): string { @returns URL without port */ function removePort(parsedUrl: URL): string { + parsedUrl = new URL(parsedUrl); // prevent mutation of original URL object + parsedUrl.port = ""; return parsedUrl.toString(); }