Guest User

Untitled

a guest
May 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.57 KB | None | 0 0
  1. diff --git a/inc/actions.php b/inc/actions.php
  2. index 4a2e200..a203c08 100644
  3. --- a/inc/actions.php
  4. +++ b/inc/actions.php
  5. @@ -639,6 +639,11 @@ function act_sitemap($act) {
  6.      }
  7.  
  8.      if (is_readable($sitemap)) {
  9. +        // disable gzip compression if there is any
  10. +        if (in_array('ob_gzhandler', ob_list_handlers())) {
  11. +            ob_end_clean();
  12. +            header('Content-Encoding: identity');
  13. +        }
  14.          // Send headers
  15.          header('Content-Type: '.$mime);
  16.          header('Content-Disposition: attachment; filename='.basename($sitemap));
Add Comment
Please, Sign In to add comment