Merge pull request #17157 from nextcloud/backport/16310/stable16
[stable16] Don't send executionContexts for Clear-Site-Data
This commit is contained in:
commit
e05093d42c
|
@ -137,7 +137,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;
|
||||
}
|
||||
|
||||
|
|
|
@ -117,7 +117,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());
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue