diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-11-21 11:30:45 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-11-21 11:30:45 -0500 |
commit | 37ef9069980a31876d6723da0af1376b510fb668 (patch) | |
tree | 1b70bd648475906e50bfd849ff8f770cb1889fb7 /app/Core/Http | |
parent | 83e4c7729ed58e63f2be96431f5e0685d45b1593 (diff) |
Avoid Safari to append .html at the end of downloaded files
Diffstat (limited to 'app/Core/Http')
-rw-r--r-- | app/Core/Http/Response.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Core/Http/Response.php b/app/Core/Http/Response.php index e16da5f0..c5a5d3cc 100644 --- a/app/Core/Http/Response.php +++ b/app/Core/Http/Response.php @@ -47,6 +47,8 @@ class Response extends Base public function forceDownload($filename) { header('Content-Disposition: attachment; filename="'.$filename.'"'); + header('Content-Transfer-Encoding: binary'); + header('Content-Type: application/octet-stream'); } /** |