diff options
| author | 2013-12-01 17:50:35 +0100 | |
|---|---|---|
| committer | 2013-12-01 17:50:35 +0100 | |
| commit | b646bd2f084483bc95b279be3175c77174fbeb89 (patch) | |
| tree | 90d1370c8449a2e8bc361cd4e63c26d27a82c09a /app | |
| parent | c9c068115d17132ddcdf2194d216533823831896 (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-x | app/controllers/indexController.php | 1 | ||||
| -rwxr-xr-x | app/views/entry/bookmark.phtml | 1 | ||||
| -rwxr-xr-x | app/views/entry/read.phtml | 1 |
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); |
