]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont force a download for public links
authorRobin Appelman <icewind1991@gmail.com>
Tue, 2 Aug 2011 23:06:25 +0000 (01:06 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Tue, 2 Aug 2011 23:06:25 +0000 (01:06 +0200)
apps/files_publiclink/get.php

index 6bcefc2e4e8ccc46e53d9b932ceb75889a7771c6..49bba9018542a073d2d06add76da51dbfa238947 100644 (file)
@@ -63,7 +63,6 @@ if($path!==false){
                //get time mimetype and set the headers
                $mimetype=OC_Filesystem::getMimeType($path);
                header('Content-Transfer-Encoding: binary');
-               header('Content-Disposition: attachment; filename="'.basename($path).'"');
                header('Expires: 0');
                header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
                header('Pragma: public');