diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2023-02-14 16:56:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 16:56:48 +0100 |
commit | e764ee84c9a987a0c1258520fda873d5e42a5515 (patch) | |
tree | 574b5ba79e778e82beb3d6c2b3560a9f98fe323f | |
parent | c2cc3afd611e7fc73663e88abaf42546abdeb881 (diff) | |
parent | 6f3ce5c319e82ce52b5e3ae5ba6600f4a9fb817f (diff) | |
download | nextcloud-server-e764ee84c9a987a0c1258520fda873d5e42a5515.tar.gz nextcloud-server-e764ee84c9a987a0c1258520fda873d5e42a5515.zip |
Merge pull request #36700 from nextcloud/bugfix/noid/bruteforce-protection-not-working
Also copy meta data when converting DataResponse to JSONReā¦
-rw-r--r-- | lib/public/AppFramework/Controller.php | 3 |
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; } |