From f7f6ced8c58483e0c13fee80c33c0facd8a1f4be Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Mon, 23 Jan 2012 19:47:26 +0100 Subject: [PATCH] add content-type --- lib/Alchemy/Phrasea/Controller/Admin/Users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Controller/Admin/Users.php b/lib/Alchemy/Phrasea/Controller/Admin/Users.php index 5e28d9954c..ed07dbabfe 100644 --- a/lib/Alchemy/Phrasea/Controller/Admin/Users.php +++ b/lib/Alchemy/Phrasea/Controller/Admin/Users.php @@ -332,7 +332,7 @@ class Users implements ControllerProviderInterface $Serializer = $app['Core']['Serializer']; - return new Response($Serializer->serialize($datas, 'json')); + return new Response($Serializer->serialize($datas, 'json'), 200, array("Content-Type" => "application/json")); } ); @@ -409,7 +409,7 @@ class Users implements ControllerProviderInterface $headers = array( 'Content-type' => 'text/csv' - , 'Content-Disposition' => 'attachment; filename=export.txt;' + , 'Content-Disposition' => 'attachment; filename=export.txt' ); $response = new Response($out, 200, $headers); $response->setCharset('UTF-8');