Merge pull request #36704 from nextcloud/backport/36700/stable23

[stable23] Also copy meta data when converting DataResponse to JSONRe…
This commit is contained in:
blizzz 2023-02-14 22:07:04 +01:00 committed by GitHub
commit 17c118326e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}