From 0345419ef37c8ff5024f76b90f2a24a8267f6dc2 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 10 Nov 2024 11:05:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E5=90=8C=E6=AD=A5=E6=9C=8D=E5=8A=A1=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E9=87=8D=E5=AE=9A=E5=90=91=205=20=E6=AC=A1?= =?UTF-8?q?=EF=BC=88#2109=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/main/modules/sync/client/utils.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/publish/changeLog.md b/publish/changeLog.md index 0f16df4a..492d1486 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -10,6 +10,7 @@ - 优化播放详情页UI,歌曲名字、歌手等文字过长时被截断的问题(#2049) - Scheme URL 的播放歌曲允许更长的专辑名称 - 播放本地歌曲时,将优先尝试读取本地同名字的 `jpg` 或 `png` 图片作为播放封面显示,若文件不存在则从音频文件内读取,最后再尝试使用在线图片(#2096) +- 客户端模式的同步服务连接允许重定向 5 次(#2109) ### 修复 diff --git a/src/main/modules/sync/client/utils.ts b/src/main/modules/sync/client/utils.ts index d169ce68..488602bb 100644 --- a/src/main/modules/sync/client/utils.ts +++ b/src/main/modules/sync/client/utils.ts @@ -6,6 +6,7 @@ export const request = async(url: string, options: RequestOptions = { }) => { return httpFetch(url, { ...options, timeout: options.timeout ?? 10000, + follow_max: 5, }).then(response => { return { text: response.body,