diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-07-07 13:58:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-07 13:58:42 +0300 |
commit | e7302a83f6dc1c52d806eb1e74972337719cbb99 (patch) | |
tree | 40c634fb8cd0fed2f8c54b5e012057e2a7c5c861 /settings | |
parent | cfd4e79881ce70c06773e3a6659a98ed0df64aec (diff) |
[stable9] Set content type when downloading log file to force download in some browsers (#25382) (#25398)
Diffstat (limited to 'settings')
-rw-r--r-- | settings/controller/logsettingscontroller.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/controller/logsettingscontroller.php b/settings/controller/logsettingscontroller.php index c0c9ee04ca3..7cd06eeff31 100644 --- a/settings/controller/logsettingscontroller.php +++ b/settings/controller/logsettingscontroller.php @@ -103,6 +103,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; } |