Fix Nextcloud19 compatibility
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
aa178f9e25
commit
f585fbc391
|
@ -116,7 +116,7 @@ class RateLimitingMiddleware extends Middleware {
|
|||
'core',
|
||||
'429',
|
||||
[],
|
||||
TemplateResponse::RENDER_AS_GUEST
|
||||
'guest'
|
||||
);
|
||||
$response->setStatus($exception->getCode());
|
||||
}
|
||||
|
|
|
@ -272,7 +272,7 @@ class RateLimitingMiddlewareTest extends TestCase {
|
|||
'core',
|
||||
'429',
|
||||
[],
|
||||
TemplateResponse::RENDER_AS_GUEST
|
||||
'guest'
|
||||
);
|
||||
$expected->setStatus(429);
|
||||
$this->assertEquals($expected, $result);
|
||||
|
|
Loading…
Reference in New Issue