From 890aa3277a5b96c8b98a67cd868decb18af0e9a1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 23 Jan 2023 09:22:34 +0100 Subject: [PATCH] Also copy bruteforce meta data when converting DataResponse to JSONResponse Signed-off-by: Joas Schilling --- lib/public/AppFramework/Controller.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/public/AppFramework/Controller.php b/lib/public/AppFramework/Controller.php index 31b5ed6a4a2..d022eb60e54 100644 --- a/lib/public/AppFramework/Controller.php +++ b/lib/public/AppFramework/Controller.php @@ -98,6 +98,9 @@ abstract class Controller { if ($data->getLastModified() !== null) { $response->setLastModified($data->getLastModified()); } + if ($data->isThrottled()) { + $response->throttle($data->getThrottleMetadata()); + } return $response; } -- 2.39.5