summaryrefslogtreecommitdiffstats
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 19:46:38 +0100
commit1010fbd2ed50ca5a4d50665970af7939d5024a95 (patch)
tree8e214c4ec06f622fd146295bea24f423393f26b8
parent20b11e4bf054ffaa2f470645fce6e422a50101cf (diff)
downloadnextcloud-server-1010fbd2ed50ca5a4d50665970af7939d5024a95.tar.gz
nextcloud-server-1010fbd2ed50ca5a4d50665970af7939d5024a95.zip
Also copy bruteforce meta data when converting DataResponse to JSONResponse
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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 12a6a75cf0f..a68e3951d91 100644
--- a/lib/public/AppFramework/Controller.php
+++ b/lib/public/AppFramework/Controller.php
@@ -92,6 +92,9 @@ abstract class Controller {
if ($data->getLastModified() !== null) {
$response->setLastModified($data->getLastModified());
}
+ if ($data->isThrottled()) {
+ $response->throttle($data->getThrottleMetadata());
+ }
return $response;
}