From 725b32941f858000931f56ff0faa604add400ce8 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 6 Apr 2022 14:44:46 -0600 Subject: [PATCH] Api: Fix sharing folders by making sure compression is off --- api/src/Etemplate.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/Etemplate.php b/api/src/Etemplate.php index 62790b2068..4eb63207b5 100644 --- a/api/src/Etemplate.php +++ b/api/src/Etemplate.php @@ -276,6 +276,10 @@ class Etemplate extends Etemplate\Widget\Template } if ($output_mode != 1) { + // Turn compression off so Ajax::headers() does not send a compression header + // echo (used below) is not compatible with browser expecting compressed content + ini_set('zlib.output_compression', 0); + echo $GLOBALS['egw']->framework->header(); if ($output_mode != 2 && !$GLOBALS['egw_info']['flags']['nonavbar']) {