summaryrefslogtreecommitdiff
path: root/classes/rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-28 10:44:22 +0400
committerAndrew Dolgov <[email protected]>2011-12-28 10:48:14 +0400
commit051195eccd783b6a2fa9e02c6829ce4087dc4774 (patch)
treebdef2942591900a9ad551e51b5815d03c9c73fc8 /classes/rpc.php
parent41f68571abfb56992896d6bc9677a79284285290 (diff)
xml export: gzip export data
Diffstat (limited to 'classes/rpc.php')
-rw-r--r--classes/rpc.php4
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.";
}