Skip to content

Commit

Permalink
Merge pull request #36700 from nextcloud/bugfix/noid/bruteforce-prote…
Browse files Browse the repository at this point in the history
…ction-not-working

Also copy meta data when converting DataResponse to JSONRe…
  • Loading branch information
blizzz authored Feb 14, 2023
2 parents c2cc3af + 6f3ce5c commit e764ee8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/public/AppFramework/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public function __construct($appName,
if ($data->getLastModified() !== null) {
$response->setLastModified($data->getLastModified());
}
if ($data->isThrottled()) {
$response->throttle($data->getThrottleMetadata());
}

return $response;
}
Expand Down

0 comments on commit e764ee8

Please sign in to comment.