mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-16 12:24:46 -04:00
Ensure no PHP buffer for SQLite download (#7230)
* Ensure no PHP buffer for SQLite download fix https://github.com/FreshRSS/FreshRSS/pull/6931#issuecomment-2567037406 * No warning if any case
This commit is contained in:
committed by
GitHub
parent
79d3ef4b54
commit
2cc5621860
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/** @var FreshRSS_View $this */
|
||||
@ob_end_clean(); // Ensure no buffer
|
||||
header('Content-Type: application/vnd.sqlite3');
|
||||
header('Content-Disposition: attachment; filename="' . basename($this->sqlitePath) . '"');
|
||||
header('Cache-Control: private, no-store, max-age=0');
|
||||
|
||||
Reference in New Issue
Block a user