Merge pull request #16310 from nextcloud/enh/drop-execution-context
Don't send executionContexts for Clear-Site-Data
This commit is contained in:
commit
6a088d6800
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue