From: Andrew Dolgov Date: Wed, 28 Dec 2011 06:44:22 +0000 (+0400) Subject: xml export: gzip export data X-Git-Tag: 1.5.9~25 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=051195eccd783b6a2fa9e02c6829ce4087dc4774;p=tt-rss.git xml export: gzip export data --- diff --git a/classes/rpc.php b/classes/rpc.php index 9e38da35..c55d13f9 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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."; }