From 051195eccd783b6a2fa9e02c6829ce4087dc4774 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 28 Dec 2011 10:44:22 +0400 Subject: [PATCH] xml export: gzip export data --- classes/rpc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."; } -- 2.39.5