Also copy bruteforce meta data when converting DataResponse to JSONResponse

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2023-01-23 09:22:34 +01:00
parent 20b11e4bf0
commit 1010fbd2ed
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -92,6 +92,9 @@ abstract class Controller {
if ($data->getLastModified() !== null) {
$response->setLastModified($data->getLastModified());
}
if ($data->isThrottled()) {
$response->throttle($data->getThrottleMetadata());
}
return $response;
}