diff options
author | Phie <phie@phie.ovh> | 2019-08-17 19:50:27 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-08-17 19:50:27 +0300 |
commit | 0a2dcc433b62f38bfd48e52199120493544ea689 (patch) | |
tree | 2d0cfd85ab632a438e530168b32a768b635aa0e5 | |
parent | 249216f58c1a7f394f7f5e88f04d79dd3d3376ab (diff) |
content type for lang json
-rwxr-xr-x | lib/Controller/NoteController.php | 1 | ||||
m--------- | templates/CarnetElectron | 0 |
2 files changed, 1 insertions, 0 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php index 6874008..f67de0e 100755 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/NoteController.php @@ -247,6 +247,7 @@ public function getLangJson($lang){ if($lang !== ".." && $lang !== "../"){ $response = new StreamResponse(__DIR__.'/../../templates/CarnetElectron/i18n/'.$lang.".json"); + $response->addHeader("Content-Type", "application/json"); $response->cacheFor(604800); return $response; } diff --git a/templates/CarnetElectron b/templates/CarnetElectron -Subproject 1c46bfb8ae4f726e0d0a6c742bd2b4a4a5c4d02 +Subproject 7e23c63bc388383f1c082b7a7989d0ef712033c |