summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-07-06 22:47:16 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-07-06 22:47:16 +0200
commitd769e718a58ff76a85f032913728936d77581452 (patch)
tree00ebfbeb8d5a153488d141c25271125b6c1ebd45 /settings
parentdc21a38a8598f1efe2ee43ec5648b49f7b7853fd (diff)
downloadnextcloud-server-d769e718a58ff76a85f032913728936d77581452.tar.gz
nextcloud-server-d769e718a58ff76a85f032913728936d77581452.zip
Set content type when downloading log file to force download in some browsers (#25382)
Diffstat (limited to 'settings')
-rw-r--r--settings/Controller/LogSettingsController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/Controller/LogSettingsController.php b/settings/Controller/LogSettingsController.php
index 4863c2369be..f9a69fa38c8 100644
--- a/settings/Controller/LogSettingsController.php
+++ b/settings/Controller/LogSettingsController.php
@@ -105,6 +105,7 @@ class LogSettingsController extends Controller {
*/
public function download() {
$resp = new StreamResponse(\OC\Log\Owncloud::getLogFilePath());
+ $resp->addHeader('Content-Type', 'application/octet-stream');
$resp->addHeader('Content-Disposition', 'attachment; filename="owncloud.log"');
return $resp;
}