mirror of
https://github.com/nextcloud/server.git
synced 2026-03-31 22:55:59 -04:00
Merge pull request #36702 from nextcloud/backport/36700/stable25
[stable25] Also copy meta data when converting DataResponse to JSONRe…
This commit is contained in:
commit
fe0d59dbc3
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue