diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/Controllers/updateController.php | 1 | ||||
| -rw-r--r-- | app/views/importExport/sqlite.phtml | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php index b76b528d8..d97b18c70 100644 --- a/app/Controllers/updateController.php +++ b/app/Controllers/updateController.php @@ -222,7 +222,6 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController { $result = curl_exec($curlResource); $curlGetinfo = curl_getinfo($curlResource, CURLINFO_HTTP_CODE); $curlError = curl_error($curlResource); - curl_close($curlResource); if ($curlGetinfo !== 200) { Minz_Log::warning( diff --git a/app/views/importExport/sqlite.phtml b/app/views/importExport/sqlite.phtml index fb24e8a92..f1d181a61 100644 --- a/app/views/importExport/sqlite.phtml +++ b/app/views/importExport/sqlite.phtml @@ -5,6 +5,6 @@ declare(strict_types=1); header('Content-Type: application/vnd.sqlite3'); header('Content-Disposition: attachment; filename="' . basename($this->sqlitePath) . '"'); header('Cache-Control: private, no-store, max-age=0'); -header('Last-Modified: ' . gmdate(DateTimeInterface::RFC7231, @filemtime($this->sqlitePath) ?: 0)); +header('Last-Modified: ' . gmdate('D, d M Y H:i:s \\G\\M\\T', @filemtime($this->sqlitePath) ?: 0)); header('Content-Length: ' . (@filesize($this->sqlitePath) ?: 0)); readfile($this->sqlitePath); |
