aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Controller
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-18 03:30:21 +0200
committerGitHub <noreply@github.com>2023-10-18 03:30:21 +0200
commit154a9989a7a78c02ce8811f03e6879240ad9e57c (patch)
tree99e7bd1f8191d251ebd7da866a4c14dbb7502b91 /tests/Core/Controller
parente1d33096d387314b20313204a17389225b44d957 (diff)
parent066f6ef16c7adb365b8c260ea6f06906ab63724e (diff)
downloadnextcloud-server-154a9989a7a78c02ce8811f03e6879240ad9e57c.tar.gz
nextcloud-server-154a9989a7a78c02ce8811f03e6879240ad9e57c.zip
Merge pull request #39852 from nextcloud/pragmaHeader
Stop sending deprecated Pragma header
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r--tests/Core/Controller/CssControllerTest.php3
-rw-r--r--tests/Core/Controller/JsControllerTest.php3
2 files changed, 0 insertions, 6 deletions
diff --git a/tests/Core/Controller/CssControllerTest.php b/tests/Core/Controller/CssControllerTest.php
index 9659d76a7cb..0e89071717d 100644
--- a/tests/Core/Controller/CssControllerTest.php
+++ b/tests/Core/Controller/CssControllerTest.php
@@ -117,7 +117,6 @@ class CssControllerTest extends TestCase {
$expires->setTimestamp(1337);
$expires->add(new \DateInterval('PT31536000S'));
$expected->addHeader('Expires', $expires->format(\DateTime::RFC1123));
- $expected->addHeader('Pragma', 'cache');
$result = $this->controller->getCss('file.css', 'myapp');
$this->assertEquals($expected, $result);
@@ -147,7 +146,6 @@ class CssControllerTest extends TestCase {
$expires->setTimestamp(1337);
$expires->add(new \DateInterval('PT31536000S'));
$expected->addHeader('Expires', $expires->format(\DateTime::RFC1123));
- $expected->addHeader('Pragma', 'cache');
$result = $this->controller->getCss('file.css', 'myapp');
$this->assertEquals($expected, $result);
@@ -182,7 +180,6 @@ class CssControllerTest extends TestCase {
$expires->setTimestamp(1337);
$expires->add(new \DateInterval('PT31536000S'));
$expected->addHeader('Expires', $expires->format(\DateTime::RFC1123));
- $expected->addHeader('Pragma', 'cache');
$result = $this->controller->getCss('file.css', 'myapp');
$this->assertEquals($expected, $result);
diff --git a/tests/Core/Controller/JsControllerTest.php b/tests/Core/Controller/JsControllerTest.php
index 6561d22f264..d41229e61fa 100644
--- a/tests/Core/Controller/JsControllerTest.php
+++ b/tests/Core/Controller/JsControllerTest.php
@@ -117,7 +117,6 @@ class JsControllerTest extends TestCase {
$expires->setTimestamp(1337);
$expires->add(new \DateInterval('PT31536000S'));
$expected->addHeader('Expires', $expires->format(\DateTime::RFC1123));
- $expected->addHeader('Pragma', 'cache');
$result = $this->controller->getJs('file.js', 'myapp');
$this->assertEquals($expected, $result);
@@ -147,7 +146,6 @@ class JsControllerTest extends TestCase {
$expires->setTimestamp(1337);
$expires->add(new \DateInterval('PT31536000S'));
$expected->addHeader('Expires', $expires->format(\DateTime::RFC1123));
- $expected->addHeader('Pragma', 'cache');
$result = $this->controller->getJs('file.js', 'myapp');
$this->assertEquals($expected, $result);
@@ -182,7 +180,6 @@ class JsControllerTest extends TestCase {
$expires->setTimestamp(1337);
$expires->add(new \DateInterval('PT31536000S'));
$expected->addHeader('Expires', $expires->format(\DateTime::RFC1123));
- $expected->addHeader('Pragma', 'cache');
$result = $this->controller->getJs('file.js', 'myapp');
$this->assertEquals($expected, $result);