From be3bdf61d778928916942c07c6d60968fddf9d18 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 30 Apr 2005 14:36:33 +0000 Subject: - some fixes here and there git-svn-id: file:///svn/phpbb/trunk@5138 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/download.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'phpBB/download.php') diff --git a/phpBB/download.php b/phpBB/download.php index 4de5aebf1a..2ddbd42fe0 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -204,14 +204,13 @@ function send_file_to_browser($attachment, $upload_dir, $category) $attachment['mimetype'] = ($browser_agent == 'ie' || $browser_agent == 'opera') ? 'application/octetstream' : 'application/octet-stream'; } - if ($config['gzip_compress']) + if (@ob_get_length()) { @ob_end_clean(); } // Now the tricky part... let's dance header('Pragma: public'); -// header('Content-Transfer-Encoding: none'); // Send out the Headers header('Content-Type: ' . $attachment['mimetype'] . '; name="' . $attachment['real_filename'] . '"'); -- cgit v1.2.1