feat: site subscriptions export require download=1 safety valve

This commit is contained in:
萝卜
2026-03-13 22:52:55 +00:00
parent 1f832477c0
commit f37ff15e0d
4 changed files with 40 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ class AdminSiteSubscriptionExportTest extends TestCase
'activated_at' => now()->subDays(1),
]);
$res = $this->get('/admin/site-subscriptions/export');
$res = $this->get('/admin/site-subscriptions/export?download=1');
$res->assertOk();
$res->assertHeader('content-type', 'text/csv; charset=UTF-8');