From 9b9f5b1a8ac6b08c7d9220f5581344c7bc9cdfce Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 11 Jan 2013 17:09:36 +0100 Subject: 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. --- settings/ajax/enableapp.php | 1 - 1 file changed, 1 deletion(-) (limited to 'settings/ajax/enableapp.php') 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) { -- cgit v1.2.3