summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-23 09:22:34 +0100
committerJoas Schilling <coding@schilljs.com>2023-02-14 16:00:10 +0100
commit6f3ce5c319e82ce52b5e3ae5ba6600f4a9fb817f (patch)
tree574b5ba79e778e82beb3d6c2b3560a9f98fe323f /lib/public/AppFramework
parentc2cc3afd611e7fc73663e88abaf42546abdeb881 (diff)
downloadnextcloud-server-6f3ce5c319e82ce52b5e3ae5ba6600f4a9fb817f.tar.gz
nextcloud-server-6f3ce5c319e82ce52b5e3ae5ba6600f4a9fb817f.zip
Also copy bruteforce meta data when converting DataResponse to JSONResponse
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/Controller.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Controller.php b/lib/public/AppFramework/Controller.php
index 89cfd2e55fc..e8500d5ae1a 100644
--- a/lib/public/AppFramework/Controller.php
+++ b/lib/public/AppFramework/Controller.php
@@ -91,6 +91,9 @@ abstract class Controller {
if ($data->getLastModified() !== null) {
$response->setLastModified($data->getLastModified());
}
+ if ($data->isThrottled()) {
+ $response->throttle($data->getThrottleMetadata());
+ }
return $response;
}