add content-type

This commit is contained in:
Nicolas Le Goff
2012-01-23 19:47:26 +01:00
parent 71d55c463d
commit f7f6ced8c5

View File

@@ -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');