]> git.wh0rd.org Git - tt-rss.git/commitdiff
xml export: gzip export data
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 28 Dec 2011 06:44:22 +0000 (10:44 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 28 Dec 2011 06:48:14 +0000 (10:48 +0400)
classes/rpc.php

index 9e38da356086dbb408bbb76b874710d608ef7683..c55d13f9a75c3e9b71ea69ae813780adbe207c7f 100644 (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.";
                }