summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-08-30 15:44:00 +0200
committerRobin Appelman <robin@icewind.nl>2016-08-30 15:44:00 +0200
commitacffaa55a1a2834a88bc316e297a7ceb9499e65d (patch)
tree4cad0314b3efbece301464ed1194983699bda3e6 /lib
parentef34b49e4302cf1133c49c9f14e46dc166b62599 (diff)
downloadnextcloud-server-acffaa55a1a2834a88bc316e297a7ceb9499e65d.tar.gz
nextcloud-server-acffaa55a1a2834a88bc316e297a7ceb9499e65d.zip
Short circuit processing of the heartbeat request
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 68eab7c4acf..fe7419e6ff3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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();