summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fetch.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/fetch.php b/fetch.php
index 2e11a3b06..daf03f293 100644
--- a/fetch.php
+++ b/fetch.php
@@ -74,6 +74,10 @@
header('Last-Modified: '.date('r',filemtime($FILE)));
header('Content-Length: '.filesize($FILE));
+ //application mime type is downloadable
+ if(substr($MIME,0,11) == 'application'){
+ header('Content-Disposition: attachment; filename="'.basename($FILE).'"');
+ }
$fp = @fopen($FILE,"rb");
if($fp){