From 0b02d5968b5682887417ada3e9555fe42f5f791f Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Thu, 17 Aug 2023 08:11:56 +0000 Subject: [PATCH] auto update alist-proxy.js --- alist-proxy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alist-proxy.js b/alist-proxy.js index f15c4cd..49b0344 100644 --- a/alist-proxy.js +++ b/alist-proxy.js @@ -76,7 +76,8 @@ async function handleDownload(request) { if (res.code !== 200) { return new Response(JSON.stringify(res)); } - request = new Request(res.data.url, { ...request, redirect: "follow" }); + request = new Request(res.data.url, request); + request = new Request(request, { redirect: "follow" }); if (res.data.header) { for (const k in res.data.header) { for (const v of res.data.header[k]) {