I'm serving up dynamically generated CSS through symfony2 and the
Content-Type that chrome/firefox is receiving is "t". I've set the
_filter for my route to css and there is a corresponding entry in the
symfony HttpFoundation\File class.

In my mainAction method of my CSSController I have the following code
which I thought should force the content-type but as far as I can
tell, it does get set, but immediately gets cleared. Through some poor
debugging I can see that 3 different Response objects are being
created with me setting the Content-Type of the first one and the
final one that is created when the content-type is set to "t" is the
one being used and the other 2 are lost.

$this->container->get('response')->headers->set('Content-Type', 'text/
css', true);

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to