diff options
author | Andrew Dolgov <[email protected]> | 2013-01-12 16:02:37 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-01-12 16:02:37 +0400 |
commit | 7d1a91d56c24b303727ad8eca0c07c749e05d535 (patch) | |
tree | bc5891ca1c0c3428fcdab3f9470be649aabb3afb /backend.php | |
parent | 12f317822df08f4a6bb773ad0308f014fea1b6f7 (diff) |
use text/json content-type in a few more places
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend.php b/backend.php index e718f8103..98b76450f 100644 --- a/backend.php +++ b/backend.php @@ -53,7 +53,7 @@ if (!init_connection($link)) return; - header("Content-Type: text/plain; charset=utf-8"); + header("Content-Type: text/json; charset=utf-8"); if (ENABLE_GZIP_OUTPUT && function_exists("ob_gzhandler")) { ob_start("ob_gzhandler"); @@ -135,19 +135,19 @@ $handler->after(); return; } else { - header("Content-Type: text/plain"); + header("Content-Type: text/json"); print json_encode(array("error" => array("code" => 6))); return; } } else { - header("Content-Type: text/plain"); + header("Content-Type: text/json"); print json_encode(array("error" => array("code" => 6))); return; } } } - header("Content-Type: text/plain"); + header("Content-Type: text/json"); print json_encode(array("error" => array("code" => 7))); // We close the connection to database. |