diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-07-09 19:20:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-09 19:20:50 +0200 |
commit | 6a088d68008b72485d01ab70dbae347800163095 (patch) | |
tree | 46edbf184cea1aa8161f24578ec18a98d47f4802 | |
parent | e9bf196d379ceb9089f0268df3373427b7fbee80 (diff) | |
parent | 6235a66aac8d330c0d9ce8d9c918c7ec9c69a6e5 (diff) | |
download | nextcloud-server-6a088d68008b72485d01ab70dbae347800163095.tar.gz nextcloud-server-6a088d68008b72485d01ab70dbae347800163095.zip |
Merge pull request #16310 from nextcloud/enh/drop-execution-context
Don't send executionContexts for Clear-Site-Data
-rw-r--r-- | core/Controller/LoginController.php | 2 | ||||
-rw-r--r-- | tests/Core/Controller/LoginControllerTest.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index 62670f61021..5d5ae666ca1 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -128,7 +128,7 @@ class LoginController extends Controller { $this->session->set('clearingExecutionContexts', '1'); $this->session->close(); - $response->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"'); + $response->addHeader('Clear-Site-Data', '"cache", "storage"'); return $response; } diff --git a/tests/Core/Controller/LoginControllerTest.php b/tests/Core/Controller/LoginControllerTest.php index 44a39cc3b27..df1b12b9709 100644 --- a/tests/Core/Controller/LoginControllerTest.php +++ b/tests/Core/Controller/LoginControllerTest.php @@ -138,7 +138,7 @@ class LoginControllerTest extends TestCase { ->willReturn('/login'); $expected = new RedirectResponse('/login'); - $expected->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"'); + $expected->addHeader('Clear-Site-Data', '"cache", "storage"'); $this->assertEquals($expected, $this->loginController->logout()); } @@ -168,7 +168,7 @@ class LoginControllerTest extends TestCase { ->willReturn('/login'); $expected = new RedirectResponse('/login'); - $expected->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"'); + $expected->addHeader('Clear-Site-Data', '"cache", "storage"'); $this->assertEquals($expected, $this->loginController->logout()); } |