summaryrefslogtreecommitdiffstats
path: root/status.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-08 18:02:00 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-08 18:02:00 +0200
commit78ec7543d50ff3ab269e4d668730405841038c6b (patch)
treea4bb7a5418c068ba9a59a31b72e01b97ad20d373 /status.php
parentfc2711e15695f0be8e353a0237e5f1f5b5dc4389 (diff)
downloadnextcloud-server-78ec7543d50ff3ab269e4d668730405841038c6b.tar.gz
nextcloud-server-78ec7543d50ff3ab269e4d668730405841038c6b.zip
Fix maintenance refresh interval
* fix XMLHttpRequest - send after callback is registered * check for correct type of value - it's a boolean * return correct content-type in status.php
Diffstat (limited to 'status.php')
-rw-r--r--status.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/status.php b/status.php
index 1628e824e00..6e7bcea5266 100644
--- a/status.php
+++ b/status.php
@@ -41,6 +41,7 @@ try {
if (OC::$CLI) {
print_r($values);
} else {
+ header('Content-Type: application/json');
echo json_encode($values);
}