Merge pull request #36702 from nextcloud/backport/36700/stable25

[stable25] Also copy meta data when converting DataResponse to JSONRe…
This commit is contained in:
blizzz 2023-02-14 22:05:14 +01:00 committed by GitHub
commit fe0d59dbc3
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;
}