Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-07-08 10:15:38 +0300
committerGitHub <noreply@github.com>2016-07-08 10:15:38 +0300
commit830c1f2fbfe560f42912315dc423b30578125905 (patch)
tree8c81e812ec94076b81748380984d35d5d9b16c75 /tests
parent0ec43a4f0f0872bbfda9d61d69c887f8ea48927c (diff)
[stable9.1] Set content type when downloading log file to force download in some browsers (#25382) (#25397)
Diffstat (limited to 'tests')
-rw-r--r--tests/Settings/Controller/LogSettingsControllerTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Settings/Controller/LogSettingsControllerTest.php b/tests/Settings/Controller/LogSettingsControllerTest.php
index 092c04aecc7..1660369fafe 100644
--- a/tests/Settings/Controller/LogSettingsControllerTest.php
+++ b/tests/Settings/Controller/LogSettingsControllerTest.php
@@ -71,5 +71,8 @@ class LogSettingsControllerTest extends \Test\TestCase {
$response = $this->logSettingsController->download();
$this->assertInstanceOf('\OCP\AppFramework\Http\StreamResponse', $response);
+ $headers = $response->getHeaders();
+ $this->assertEquals('application/octet-stream', $headers['Content-Type']);
+ $this->assertEquals('attachment; filename="owncloud.log"', $headers['Content-Disposition']);
}
}