aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_download.php
diff options
context:
space:
mode:
authoralf007 <alf007@free.fr>2015-05-25 00:14:48 +0200
committeralf007 <alf007@free.fr>2015-05-25 00:14:48 +0200
commit6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b (patch)
treebd40622b18c3ce4d8174f2dc717ae19a12cf3d1a /phpBB/includes/functions_download.php
parent6a4cb42565d7e1663da4d02cd8d624b034b20afe (diff)
parent6322970766bd9fa78327fa2ca6a6a43d73b680ee (diff)
downloadforums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar.gz
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar.bz2
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.tar.xz
forums-6025c40cab2d768c3cad3586fa1bfbfa6c9eeb3b.zip
Merge pull request #1 from phpbb/develop-ascraeus
Develop ascraeus
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r--phpBB/includes/functions_download.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index fbeae50f55..254e65ae3d 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -210,11 +210,6 @@ function send_file_to_browser($attachment, $upload_dir, $category)
}
}
- if ($size)
- {
- header("Content-Length: $size");
- }
-
// Close the db connection before sending the file etc.
file_gc(false);
@@ -238,6 +233,11 @@ function send_file_to_browser($attachment, $upload_dir, $category)
exit;
}
+ if ($size)
+ {
+ header("Content-Length: $size");
+ }
+
// Try to deliver in chunks
@set_time_limit(0);