aboutsummaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-30 12:43:58 +0200
committerLukas Reschke <lukas@owncloud.com>2016-06-30 12:47:46 +0200
commit700a57d8b69dcabfef3e4e27911e2db2ea96b9c6 (patch)
tree709da1194f520c0a566bb0f709bbcdf97b0a507d /settings/Controller
parentf7a69c765af490767fcd765f06086f7604fdbc43 (diff)
downloadnextcloud-server-700a57d8b69dcabfef3e4e27911e2db2ea96b9c6.tar.gz
nextcloud-server-700a57d8b69dcabfef3e4e27911e2db2ea96b9c6.zip
Set content-type to "application/octet-stream"
Some browsers such as Firefox on Microsoft Windows otherwise do offer to open the file directly which is kinda silly.
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/LogSettingsController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/Controller/LogSettingsController.php b/settings/Controller/LogSettingsController.php
index 4863c2369be..6c9fe76c247 100644
--- a/settings/Controller/LogSettingsController.php
+++ b/settings/Controller/LogSettingsController.php
@@ -105,7 +105,8 @@ class LogSettingsController extends Controller {
*/
public function download() {
$resp = new StreamResponse(\OC\Log\Owncloud::getLogFilePath());
- $resp->addHeader('Content-Disposition', 'attachment; filename="owncloud.log"');
+ $resp->addHeader('Content-Type', 'application/octet-stream');
+ $resp->addHeader('Content-Disposition', 'attachment; filename="nextcloud.log"');
return $resp;
}
}