mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 23:40:30 +00:00
feat: 优化导出订阅/文件逻辑
This commit is contained in:
4 files changed
+4
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.36.18",
|
||||
"version": "2.36.19",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"packageManager": "pnpm@11.0.9",
|
||||
|
||||
@@ -46,6 +46,7 @@ function getCollection(req, res) {
|
||||
if (collection) {
|
||||
if (raw) {
|
||||
res.set('content-type', 'application/json')
|
||||
.set('access-control-expose-headers', 'content-disposition')
|
||||
.set(
|
||||
'content-disposition',
|
||||
`attachment; filename="${encodeURIComponent(
|
||||
|
||||
@@ -424,6 +424,7 @@ function getWholeFile(req, res) {
|
||||
if (file) {
|
||||
if (raw) {
|
||||
res.set('content-type', 'application/json')
|
||||
.set('access-control-expose-headers', 'content-disposition')
|
||||
.set(
|
||||
'content-disposition',
|
||||
`attachment; filename="${encodeURIComponent(
|
||||
|
||||
@@ -256,6 +256,7 @@ function getSubscription(req, res) {
|
||||
if (sub) {
|
||||
if (raw) {
|
||||
res.set('content-type', 'application/json')
|
||||
.set('access-control-expose-headers', 'content-disposition')
|
||||
.set(
|
||||
'content-disposition',
|
||||
`attachment; filename="${encodeURIComponent(
|
||||
|
||||
Reference in new issue
Block a user