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.
This commit is contained in:
parent
1eb3c8ecf6
commit
9b9f5b1a8a
2 changed files with 0 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
OC_JSON::checkAdminUser();
|
||||
OCP\JSON::callCheck();
|
||||
OC_JSON::setContentTypeHeader();
|
||||
|
||||
OC_App::disable($_POST['appid']);
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
OC_JSON::checkAdminUser();
|
||||
OCP\JSON::callCheck();
|
||||
OC_JSON::setContentTypeHeader();
|
||||
|
||||
$appid = OC_App::enable($_POST['appid']);
|
||||
if($appid !== false) {
|
||||
|
|
Loading…
Reference in a new issue