summaryrefslogtreecommitdiffstats
path: root/settings/ajax/disableapp.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-11 17:09:36 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-01-11 17:09:36 +0100
commit9b9f5b1a8ac6b08c7d9220f5581344c7bc9cdfce (patch)
tree91e82bbd5849faee361c1379179bf408834781bd /settings/ajax/disableapp.php
parent1eb3c8ecf6a86a879af5773f5ca01be81c9bae49 (diff)
downloadnextcloud-server-9b9f5b1a8ac6b08c7d9220f5581344c7bc9cdfce.tar.gz
nextcloud-server-9b9f5b1a8ac6b08c7d9220f5581344c7bc9cdfce.zip
Remove setContentTypeHeader()
`OC_JSON::success` and `OC_JSON::error` are calling `OC_JSON::encodedPrint`, which already sets these headers. So this two calls are uneeded duplicates.
Diffstat (limited to 'settings/ajax/disableapp.php')
-rw-r--r--settings/ajax/disableapp.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/settings/ajax/disableapp.php b/settings/ajax/disableapp.php
index a39b06b9c7d..e89de928eac 100644
--- a/settings/ajax/disableapp.php
+++ b/settings/ajax/disableapp.php
@@ -1,7 +1,6 @@
<?php
OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
-OC_JSON::setContentTypeHeader();
OC_App::disable($_POST['appid']);