Merge pull request #1195 from nextcloud/heartbeat-short-circuit

Short circuit processing of the heartbeat request
This commit is contained in:
Lukas Reschke 2016-08-30 17:41:45 +02:00 committed by GitHub
commit 2a6193e7aa
1 changed files with 3 additions and 0 deletions

View File

@ -922,6 +922,9 @@ class OC {
$request = \OC::$server->getRequest();
$requestPath = $request->getRawPathInfo();
if ($requestPath === '/heartbeat') {
return;
}
if (substr($requestPath, -3) !== '.js') { // we need these files during the upgrade
self::checkMaintenanceMode();
self::checkUpgrade();