1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-28 09:41:27 +00:00

xml export: gzip export data

This commit is contained in:
Andrew Dolgov
2011-12-28 10:44:22 +04:00
parent 41f68571ab
commit 051195eccd

View File

@@ -20,9 +20,9 @@ class RPC extends Protected_Handler {
if (file_exists($exportname)) {
header("Content-type: text/xml");
header("Content-Disposition: attachment; filename=TinyTinyRSS_exported.xml");
header("Content-Disposition: attachment; filename=TinyTinyRSS_exported.xml.gz");
echo file_get_contents($exportname);
echo gzencode(file_get_contents($exportname));
} else {
echo "File not found.";
}