Revert "Removed text/plain header."

This reverts commit fa6d26b53c.
This commit is contained in:
Thomas Tanghus 2012-08-02 19:35:38 +02:00
parent fc4a542dd0
commit 98057dba5b
3 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,8 @@
*
*/
// Firefox and Konqueror tries to download application/json for me. --Arthur
OCP\JSON::setContentTypeHeader('text/plain');
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts');
require_once 'loghandler.php';

View File

@ -24,6 +24,9 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts');
OCP\JSON::callCheck();
// Firefox and Konqueror tries to download application/json for me. --Arthur
OCP\JSON::setContentTypeHeader('text/plain');
require_once 'loghandler.php';
$image = null;

View File

@ -25,6 +25,8 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts');
OCP\JSON::callCheck();
// Firefox and Konqueror tries to download application/json for me. --Arthur
OCP\JSON::setContentTypeHeader('text/plain');
require_once 'loghandler.php';
$l10n = OC_Contacts_App::$l10n;
// If it is a Drag'n'Drop transfer it's handled here.