summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/OCS/BaseResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/AppFramework/OCS/BaseResponse.php')
-rw-r--r--lib/private/AppFramework/OCS/BaseResponse.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/AppFramework/OCS/BaseResponse.php b/lib/private/AppFramework/OCS/BaseResponse.php
index 55410c8910b..d6e3d515f86 100644
--- a/lib/private/AppFramework/OCS/BaseResponse.php
+++ b/lib/private/AppFramework/OCS/BaseResponse.php
@@ -75,6 +75,11 @@ abstract class BaseResponse extends Response {
$this->setLastModified($dataResponse->getLastModified());
$this->setCookies($dataResponse->getCookies());
+ if ($dataResponse->isThrottled()) {
+ $throttleMetadata = $dataResponse->getThrottleMetadata();
+ $this->throttle($throttleMetadata);
+ }
+
if ($format === 'json') {
$this->addHeader(
'Content-Type', 'application/json; charset=utf-8'