aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-01 17:50:35 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-01 17:50:35 +0100
commitb646bd2f084483bc95b279be3175c77174fbeb89 (patch)
tree90d1370c8449a2e8bc361cd4e63c26d27a82c09a /app/controllers/indexController.php
parentc9c068115d17132ddcdf2194d216533823831896 (diff)
JSON : utiliser application/json
Les réponses JSON utilisaient indument text/html Repéré à cause de https://github.com/marienfressinaud/FreshRSS/issues/306
Diffstat (limited to 'app/controllers/indexController.php')
-rwxr-xr-xapp/controllers/indexController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php
index b3ae40847..8ca730d0f 100755
--- a/app/controllers/indexController.php
+++ b/app/controllers/indexController.php
@@ -260,6 +260,7 @@ class indexController extends ActionController {
$res['reason'] = Translate::t ('invalid_login');
}
+ header('Content-Type: application/json; charset=UTF-8');
$this->view->res = json_encode ($res);
}