Skip to content

Commit d54f519

Browse files
committed
Also copy bruteforce meta data when converting DataResponse to JSONResponse
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 33329a5 commit d54f519

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/public/AppFramework/Controller.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ public function __construct($appName,
9292
if ($data->getLastModified() !== null) {
9393
$response->setLastModified($data->getLastModified());
9494
}
95+
if ($data->isThrottled()) {
96+
$response->throttle($data->getThrottleMetadata());
97+
}
9598

9699
return $response;
97100
}

0 commit comments

Comments
 (0)