summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-20 07:01:19 +0100
committerAndrew Dolgov <[email protected]>2008-05-20 07:01:19 +0100
commit04fedbf587995bd029d345994f1c35130b8963b1 (patch)
tree46f49b0b06463426f086d0087671c6d16455f81f /backend.php
parentee8768dbbbf5820e9d37a7ff7a834d37021fcac7 (diff)
new option: ENABLE_GZIP_OUTPUT
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index e5ccd2b77..a85351d8a 100644
--- a/backend.php
+++ b/backend.php
@@ -63,7 +63,12 @@
if ((!$op || $op == "rpc" || $op == "rss" || $op == "view" ||
$op == "digestSend" || $op == "viewfeed" || $op == "publish" ||
$op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) {
- header("Content-Type: application/xml; charset=utf-8");
+ header("Content-Type: application/xml; charset=utf-8");
+
+ if (ENABLE_GZIP_OUTPUT) {
+ ob_start("ob_gzhandler");
+ }
+
} else {
if (!$_REQUEST["noxml"]) {
header("Content-Type: text/html; charset=utf-8");