summaryrefslogtreecommitdiffstats
path: root/settings/ajax/enableapp.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/enableapp.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/enableapp.php')
-rw-r--r--settings/ajax/enableapp.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php
index f4d5c53adef..18202dc39e9 100644
--- a/settings/ajax/enableapp.php
+++ b/settings/ajax/enableapp.php
@@ -2,7 +2,6 @@
OC_JSON::checkAdminUser();
OCP\JSON::callCheck();
-OC_JSON::setContentTypeHeader();
$appid = OC_App::enable($_POST['appid']);
if($appid !== false) {