Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-08-17 19:50:27 +0300
committerPhie <phie@phie.ovh>2019-08-17 19:50:27 +0300
commit0a2dcc433b62f38bfd48e52199120493544ea689 (patch)
tree2d0cfd85ab632a438e530168b32a768b635aa0e5 /lib/Controller/NoteController.php
parent249216f58c1a7f394f7f5e88f04d79dd3d3376ab (diff)
content type for lang json
Diffstat (limited to 'lib/Controller/NoteController.php')
-rwxr-xr-xlib/Controller/NoteController.php1
1 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;
}