aboutsummaryrefslogtreecommitdiff
path: root/app
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
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')
-rwxr-xr-xapp/controllers/indexController.php1
-rwxr-xr-xapp/views/entry/bookmark.phtml1
-rwxr-xr-xapp/views/entry/read.phtml1
3 files changed, 3 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);
}
diff --git a/app/views/entry/bookmark.phtml b/app/views/entry/bookmark.phtml
index d175e10ed..1c8214bc4 100755
--- a/app/views/entry/bookmark.phtml
+++ b/app/views/entry/bookmark.phtml
@@ -1,4 +1,5 @@
<?php
+header('Content-Type: application/json; charset=UTF-8');
if (Request::param ('is_favorite')) {
Request::_param ('is_favorite', 0);
diff --git a/app/views/entry/read.phtml b/app/views/entry/read.phtml
index e909d47f4..af360ed0c 100755
--- a/app/views/entry/read.phtml
+++ b/app/views/entry/read.phtml
@@ -1,4 +1,5 @@
<?php
+header('Content-Type: application/json; charset=UTF-8');
if (Request::param ('is_read')) {
Request::_param ('is_read', 0);