Skip to content

Commit 80a1e24

Browse files
authored
Merge pull request #36706 from nextcloud/backport/36700/stable21
[stable21] Also copy meta data when converting DataResponse to JSONRe…
2 parents 10f5f1d + 890aa32 commit 80a1e24

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/public/AppFramework/Controller.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public function __construct($appName,
9898
if ($data->getLastModified() !== null) {
9999
$response->setLastModified($data->getLastModified());
100100
}
101+
if ($data->isThrottled()) {
102+
$response->throttle($data->getThrottleMetadata());
103+
}
101104

102105
return $response;
103106
}

0 commit comments

Comments
 (0)