From 37ef9069980a31876d6723da0af1376b510fb668 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 21 Nov 2015 11:30:45 -0500 Subject: Avoid Safari to append .html at the end of downloaded files --- app/Core/Http/Response.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') 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'); } /** -- cgit v1.2.3