summaryrefslogtreecommitdiffstats
path: root/application/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'application/helpers')
-rw-r--r--application/helpers/filebin_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index f19438a1c..2f073c902 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -94,9 +94,9 @@ function rangeDownload($file, $filename, $type)
$length = $end - $start + 1; // Calculate new content length
fseek($fp, $start);
header('HTTP/1.1 206 Partial Content');
+ // Notify the client the byte range we'll be outputting
+ header("Content-Range: bytes $start-$end/$size");
}
- // Notify the client the byte range we'll be outputting
- header("Content-Range: bytes $start-$end/$size");
header("Content-Length: $length");
header("Content-disposition: inline; filename=\"".$filename."\"\n");
header("Content-Type: ".$type."\n");