feat(webui): enable Range request support for backup downloads (#4329)

This commit is contained in:
RC-CHN authored and GitHub committed 2026-01-05 17:27:03 +08:00
1 parent 241f1c26d3
commit ef1c66a92e
1 file changed
+1
+1
View File
@@ -993,6 +993,7 @@ class BackupRoute(Route):
file_path,
as_attachment=True,
attachment_filename=filename,
conditional=True, # 启用 Range 请求支持(断点续传)
)
except Exception as e:
logger.error(f"下载备份失败: {e}")