Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/inc/actions.php b/inc/actions.php
- index 4a2e200..a203c08 100644
- --- a/inc/actions.php
- +++ b/inc/actions.php
- @@ -639,6 +639,11 @@ function act_sitemap($act) {
- }
- if (is_readable($sitemap)) {
- + // disable gzip compression if there is any
- + if (in_array('ob_gzhandler', ob_list_handlers())) {
- + ob_end_clean();
- + header('Content-Encoding: identity');
- + }
- // Send headers
- header('Content-Type: '.$mime);
- header('Content-Disposition: attachment; filename='.basename($sitemap));
Add Comment
Please, Sign In to add comment