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.";
}