diff options
author | Andrew Dolgov <[email protected]> | 2011-12-28 10:44:22 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-28 10:48:14 +0400 |
commit | 051195eccd783b6a2fa9e02c6829ce4087dc4774 (patch) | |
tree | bdef2942591900a9ad551e51b5815d03c9c73fc8 /classes/rpc.php | |
parent | 41f68571abfb56992896d6bc9677a79284285290 (diff) |
xml export: gzip export data
Diffstat (limited to 'classes/rpc.php')
-rw-r--r-- | classes/rpc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index 9e38da356..c55d13f9a 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."; } |