From 5b165893600efcc3f547edc5349a2ca279eca413 Mon Sep 17 00:00:00 2001 From: VinnyVynce <19630511+VinnyVynce@users.noreply.github.com> Date: Mon, 6 Jun 2022 07:07:35 -0400 Subject: [PATCH] Change urls for href instead of origin --- src/pages/api/modules/downloads.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/api/modules/downloads.ts b/src/pages/api/modules/downloads.ts index 2322a481b..eaa0ece4e 100644 --- a/src/pages/api/modules/downloads.ts +++ b/src/pages/api/modules/downloads.ts @@ -17,14 +17,14 @@ async function Post(req: NextApiRequest, res: NextApiResponse) { switch (dlclient) { case 'qbit': client = new QBittorrent({ - baseUrl: new URL(url).origin, + baseUrl: new URL(url).href, username, password, }); break; case 'deluge': client = new Deluge({ - baseUrl: new URL(url).origin, + baseUrl: new URL(url).href, password, }); break;