Skip to content

Commit 5b0d343

Browse files
Also copy bruteforce meta data when converting DataResponse to JSONResponse
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 10f5f1d commit 5b0d343

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
@@ -98,6 +98,9 @@ public function __construct($appName,
9898
if ($data->getLastModified() !== null) {
9999
$response->setLastModified($data->getLastModified());
100100
}
101+
if ($data->isThrottled()) {
102+
$response->throttle($data->getThrottleMetadata());
103+
}
101104

102105
return $response;
103106
}

0 commit comments

Comments
 (0)