Also copy bruteforce meta data when converting DataResponse to JSONResponse

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/36705/head
Joas Schilling 1 year ago
parent 33329a50b8
commit d54f51940d
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205

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

Loading…
Cancel
Save